at 23.11-beta 35 lines 958 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "jfrog-cli"; 8 version = "2.50.4"; 9 10 src = fetchFromGitHub { 11 owner = "jfrog"; 12 repo = "jfrog-cli"; 13 rev = "refs/tags/v${version}"; 14 hash = "sha256-q4l0C99CEY3CEw2eXEnz+29z4JGSgqhVKFoaQ7azsZQ="; 15 }; 16 17 vendorHash = "sha256-7+kmKqMDrGw/lnOL+JS4MRguQNlLaOb47ptX33BEWkM="; 18 19 postInstall = '' 20 # Name the output the same way as the original build script does 21 mv $out/bin/jfrog-cli $out/bin/jf 22 ''; 23 24 # Some of the tests require a writable $HOME 25 preCheck = "export HOME=$TMPDIR"; 26 27 meta = with lib; { 28 homepage = "https://github.com/jfrog/jfrog-cli"; 29 description = "Client for accessing to JFrog's Artifactory and Mission Control through their respective REST APIs"; 30 changelog = "https://github.com/jfrog/jfrog-cli/releases/tag/v${version}"; 31 license = licenses.asl20; 32 mainProgram = "jf"; 33 maintainers = with maintainers; [ detegr ]; 34 }; 35}