nixpkgs/pkgs/tools/misc/jfrog-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
958 B
Nix
Raw Normal View History

2023-05-21 11:20:59 +03:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2023-01-10 22:04:11 +03:00
buildGoModule rec {
pname = "jfrog-cli";
2023-09-01 12:23:42 +03:00
version = "2.46.2";
2023-01-10 22:04:11 +03:00
src = fetchFromGitHub {
owner = "jfrog";
repo = "jfrog-cli";
2023-05-21 11:20:59 +03:00
rev = "refs/tags/v${version}";
2023-09-01 12:23:42 +03:00
hash = "sha256-NPRxBcXnY1l30RrFTgR+vqvRLdH564Daw/OIqRUhTss=";
2023-01-10 22:04:11 +03:00
};
2023-09-01 12:23:42 +03:00
vendorHash = "sha256-dMVXpqIDL6fQc9KYN4Co6vBCrpxocnwA3EkgMEme3aI=";
2023-05-21 11:20:59 +03:00
2023-01-10 22:04:11 +03:00
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";
2023-05-21 11:20:59 +03:00
changelog = "https://github.com/jfrog/jfrog-cli/releases/tag/v${version}";
2023-01-10 22:04:11 +03:00
license = licenses.asl20;
mainProgram = "jf";
2023-05-21 11:20:59 +03:00
maintainers = with maintainers; [ detegr ];
2023-01-10 22:04:11 +03:00
};
}