diff options
author | Antti Keränen <detegr@rbx.email> | 2023-01-10 21:04:11 +0200 |
---|---|---|
committer | Antti Keränen <detegr@rbx.email> | 2023-01-11 08:30:12 +0200 |
commit | f2af8bd5327073754a956edbb4a175a450ce907f (patch) | |
tree | 406e222018fd640b2e938556db77228ade742945 /pkgs/tools | |
parent | e4c9245ea7963adc670f1b61d041d38be3e13e06 (diff) |
jfrog-cli: init at 2.32.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/jfrog-cli/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/misc/jfrog-cli/default.nix b/pkgs/tools/misc/jfrog-cli/default.nix new file mode 100644 index 000000000000..7a8a6aa8a848 --- /dev/null +++ b/pkgs/tools/misc/jfrog-cli/default.nix @@ -0,0 +1,30 @@ +{ buildGoModule, fetchFromGitHub, pkgs, lib }: + +buildGoModule rec { + pname = "jfrog-cli"; + version = "2.32.0"; + vendorSha256 = "sha256-nL+2Yc4gI2+SoxoaGlazecsrcVkVh6Ig9sqITSOa5e0="; + + src = fetchFromGitHub { + owner = "jfrog"; + repo = "jfrog-cli"; + rev = "v${version}"; + sha256 = "sha256-EyDX4OrBAzc5eYR660SrGIG61TRlWnnV/GAtXy7DfEI="; + }; + + postInstall = '' + # Name the output the same way as the original build script does + mv $out/bin/jfrog-cli $out/bin/jf + ''; + + # Some of the tests require a writable $HOME + preCheck = "export HOME=$TMPDIR"; + + meta = with lib; { + homepage = "https://github.com/jfrog/jfrog-cli"; + description = "Client for accessing to JFrog's Artifactory and Mission Control through their respective REST APIs"; + license = licenses.asl20; + mainProgram = "jf"; + maintainers = [ maintainers.detegr ]; + }; +} |