1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

darwin fixes

This commit is contained in:
Jörg Thalheim 2020-07-22 22:29:01 +01:00
parent ca550a4c65
commit 3095053dd4

View file

@ -1,4 +1,4 @@
{ stdenv, makeWrapper, gnupg, coreutils, utillinux, nettools }:
{ stdenv, makeWrapper, gnupg, coreutils, utillinux, unixtools }:
stdenv.mkDerivation {
name = "sops-init-gpg-key";
@ -11,8 +11,8 @@ stdenv.mkDerivation {
installPhase = ''
install -m755 -D $src $out/bin/sops-init-gpg-key
wrapProgram $out/bin/sops-init-gpg-key \
--prefix PATH : ${stdenv.lib.makeBinPath [
coreutils utillinux gnupg nettools
]}
--prefix PATH : ${stdenv.lib.makeBinPath ([
coreutils utillinux gnupg
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ unixtools.hostname ])}
'';
}