mirror of
https://github.com/Mic92/sops-nix.git
synced 2024-12-14 11:57:52 +00:00
fix makeSetupHook's also for older nixos release
This commit is contained in:
parent
bea992ff5e
commit
b84b3177a1
2 changed files with 12 additions and 4 deletions
|
@ -1,9 +1,13 @@
|
||||||
{ stdenv, makeSetupHook, gnupg, sops, 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 {
|
(makeSetupHook {
|
||||||
name = "sops-import-keys-hook";
|
name = "sops-import-keys-hook";
|
||||||
substitutions = {
|
substitutions = {
|
||||||
gpg = "${gnupg}/bin/gpg";
|
gpg = "${gnupg}/bin/gpg";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = [ sops gnupg ];
|
${propagatedBuildInputs} = [ sops gnupg ];
|
||||||
} ./sops-import-keys-hook.bash)
|
} ./sops-import-keys-hook.bash)
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
{ stdenv, makeSetupHook, gnupg, sops, 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 {
|
(makeSetupHook {
|
||||||
name = "sops-pgp-hook";
|
name = "sops-pgp-hook";
|
||||||
substitutions = {
|
substitutions = {
|
||||||
gpg = "${gnupg}/bin/gpg";
|
gpg = "${gnupg}/bin/gpg";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = [ sops gnupg ];
|
${propagatedBuildInputs} = [ sops gnupg ];
|
||||||
} ./sops-pgp-hook.bash)
|
} ./sops-pgp-hook.bash)
|
||||||
|
|
Loading…
Reference in a new issue