mirror of
https://github.com/ryantm/agenix.git
synced 2024-09-11 06:05:38 +03:00
Conditionally build rage if version is below 0.5.0
This commit is contained in:
parent
a678a8748c
commit
017422ed4c
@ -1,6 +1,9 @@
|
||||
{writeShellScriptBin, runtimeShell, pkgs} :
|
||||
let
|
||||
rage = pkgs.callPackage ./rage.nix {};
|
||||
# we need at least rage 0.5.0 to support ssh keys
|
||||
rage = if pkgs.rage.version < "0.5.0"
|
||||
then pkgs.callPackage ./rage.nix {}
|
||||
else pkgs.rage;
|
||||
ageBin = "${rage}/bin/rage";
|
||||
in
|
||||
writeShellScriptBin "agenix" ''
|
||||
|
Loading…
Reference in New Issue
Block a user