mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-22 17:50:48 +03:00
Conditionally build rage if version is below 0.5.0
This commit is contained in:
parent
a678a8748c
commit
017422ed4c
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
||||||
{writeShellScriptBin, runtimeShell, pkgs} :
|
{writeShellScriptBin, runtimeShell, pkgs} :
|
||||||
let
|
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";
|
ageBin = "${rage}/bin/rage";
|
||||||
in
|
in
|
||||||
writeShellScriptBin "agenix" ''
|
writeShellScriptBin "agenix" ''
|
||||||
|
|
Loading…
Reference in a new issue