Last active
March 7, 2025 14:49
-
-
Save risicle/04e21a7146e82b7b12402055e90eed6f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ lib, stdenv, buildGoModule, aws-vault, makeWrapper, yubikey-manager, git }: | |
buildGoModule rec { | |
pname = "gds-cli"; | |
version = "5.114.0"; | |
src = (builtins.fetchGit { | |
url = "ssh://[email protected]/alphagov/gds-cli.git"; | |
ref = "v${version}"; | |
rev = "8d1ffa491ef54c10f662503991c6ebb5077f5b36"; | |
allRefs = true; | |
}); | |
vendorHash = "sha256-TBMy88huCqnp5HVe4OWk6qh/Sn7FJWBtLFQEtDrpY4Q="; | |
preBuild = '' | |
go generate | |
# these require network access, and don't even build for me | |
rm -r test/ | |
rm pkg/git/git_test.go | |
''; | |
nativeBuildInputs = [ makeWrapper git ]; | |
postInstall = let | |
binPath = lib.makeBinPath [ | |
aws-vault | |
yubikey-manager | |
git | |
]; | |
in '' | |
wrapProgram $out/bin/gds-cli --prefix PATH : ${binPath} | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment