1 { lib, stdenv, fetchzip, jre }:
3 stdenv.mkDerivation rec {
4 pname = "atlassian-cli";
8 url = "https://bobswift.atlassian.net/wiki/download/attachments/16285777/${pname}-${version}-distribution.zip";
9 sha256 = "sha256-55ydhprVC9NdDMUrKbpSAEQBb9zRYgwOc7k8aP4R89A=";
28 mkdir -p $out/{bin,share/doc/atlassian-cli}
29 cp -r lib $out/share/java
30 cp -r README.txt license $out/share/doc/atlassian-cli
33 substitute ${./wrapper.sh} $out/bin/$tool \
35 --subst-var-by jre ${jre} \
36 --subst-var-by tool $tool
37 chmod +x $out/bin/$tool
42 description = "Integrated family of CLI’s for various Atlassian applications";
43 homepage = "https://bobswift.atlassian.net/wiki/spaces/ACLI/overview";
44 license = licenses.unfreeRedistributable;
45 sourceProvenance = with sourceTypes; [ binaryBytecode ];
46 maintainers = with maintainers; [ twey ];
47 inherit (jre.meta) platforms;