lol
1{
2 lib,
3 stdenv,
4 fetchzip,
5 jre,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "atlassian-cli";
10 version = "9.6.0";
11
12 src = fetchzip {
13 url = "https://bobswift.atlassian.net/wiki/download/attachments/16285777/${pname}-${version}-distribution.zip";
14 sha256 = "sha256-55ydhprVC9NdDMUrKbpSAEQBb9zRYgwOc7k8aP4R89A=";
15 };
16
17 tools = [
18 "agile"
19 "bamboo"
20 "bitbucket"
21 "confluence"
22 "csv"
23 "hipchat"
24 "jira"
25 "servicedesk"
26 "structure"
27 "tempo"
28 "trello"
29 "upm"
30 ];
31
32 installPhase = ''
33 mkdir -p $out/{bin,share/doc/atlassian-cli}
34 cp -r lib $out/share/java
35 cp -r README.txt license $out/share/doc/atlassian-cli
36 for tool in $tools
37 do
38 substitute ${./wrapper.sh} $out/bin/$tool \
39 --subst-var out \
40 --subst-var-by jre ${jre} \
41 --subst-var-by tool $tool
42 chmod +x $out/bin/$tool
43 done
44 '';
45
46 meta = with lib; {
47 description = "Integrated family of CLI’s for various Atlassian applications";
48 homepage = "https://bobswift.atlassian.net/wiki/spaces/ACLI/overview";
49 license = licenses.unfreeRedistributable;
50 sourceProvenance = with sourceTypes; [ binaryBytecode ];
51 maintainers = with maintainers; [ twey ];
52 inherit (jre.meta) platforms;
53 };
54}