mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-03-06 08:37:21 +00:00
19 lines
456 B
Nix
19 lines
456 B
Nix
|
{ stdenv, makeWrapper, gnupg, coreutils, utillinux, nettools }:
|
||
|
|
||
|
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 nettools
|
||
|
]}
|
||
|
'';
|
||
|
}
|