summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2023-01-11 22:27:15 +0100
committerGitHub <noreply@github.com>2023-01-11 22:27:15 +0100
commit902132d18abf6ed6edb767ccf28c03cb4329fdfe (patch)
treee55c3091b5e2acff3957a22a1cf99a9a71252ca3 /pkgs/tools
parent506d6390a311a36a2cf2fd7b610c43c05bdef23a (diff)
parentf2af8bd5327073754a956edbb4a175a450ce907f (diff)
Merge pull request #210081 from Detegr/jfrog-cli
jfrog-cli: init at 2.32.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/misc/jfrog-cli/default.nix30
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 ];
+ };
+}