mirror of
https://github.com/Mic92/sops-nix.git
synced 2024-12-14 11:57:52 +00:00
13 lines
376 B
Nix
13 lines
376 B
Nix
{ makeSetupHook, gnupg, sops, lib }:
|
|
|
|
let
|
|
# FIXME: drop after 23.05
|
|
propagatedBuildInputs = if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.05") then "deps" else "propagatedBuildInputs";
|
|
in
|
|
(makeSetupHook {
|
|
name = "sops-pgp-hook";
|
|
substitutions = {
|
|
gpg = "${gnupg}/bin/gpg";
|
|
};
|
|
${propagatedBuildInputs} = [ sops gnupg ];
|
|
} ./sops-pgp-hook.bash)
|