Created
September 9, 2020 12:47
Star
You must be signed in to star a gist
will use `pkgs`-provided aws-vault if >= 5.0.0, otherwise will substitute its own 6.0.0 (defined elsewhere)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
args: oldAttrs: let | |
aws-vault = if | |
(builtins.compareVersions (builtins.parseDrvName args.pkgs.aws-vault.name).version "5.0.0") != -1 then args.pkgs.aws-vault | |
else (import ../aws-vault-6.nix { | |
inherit (args.pkgs) buildGoModule fetchFromGitHub; | |
inherit (args.pkgs.stdenv) lib; | |
}); | |
in oldAttrs // { | |
buildInputs = oldAttrs.buildInputs ++ [ | |
args.pkgs.vim | |
(import ../gds-cli.nix { | |
inherit aws-vault; | |
inherit (args.pkgs) stdenv buildGoModule yubikey-manager makeWrapper; | |
}) | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment