mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-03-05 16:17:47 +00:00
18 lines
516 B
Nix
18 lines
516 B
Nix
{ stdenv, makeWrapper, gnupg, coreutils, utillinux, unixtools }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "sops-init-gpg-key";
|
|
version = "0.1.0";
|
|
src = ./sops-init-gpg-key;
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
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
|
|
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ unixtools.hostname ])}
|
|
'';
|
|
}
|