2018-04-20 16:20:45 +01:00
|
|
|
|
{ stdenv, fetchzip, jre }:
|
2018-05-24 08:52:10 +01:00
|
|
|
|
|
2018-05-24 05:37:33 +01:00
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
|
pname = "atlassian-cli";
|
2019-11-13 12:31:27 +00:00
|
|
|
|
version = "9.0.0";
|
2018-05-24 08:52:10 +01:00
|
|
|
|
|
2018-04-20 16:20:45 +01:00
|
|
|
|
src = fetchzip {
|
2019-08-15 13:41:18 +01:00
|
|
|
|
url = "https://bobswift.atlassian.net/wiki/download/attachments/16285777/${pname}-${version}-distribution.zip";
|
2019-11-13 12:31:27 +00:00
|
|
|
|
sha256 = "1z8723krq65fcy5aapgiz216vrpw2nw8fbn1h3a4zpis7kw8qp0f";
|
2018-04-20 16:20:45 +01:00
|
|
|
|
extraPostFetch = "chmod go-w $out";
|
|
|
|
|
};
|
2018-05-24 08:52:10 +01:00
|
|
|
|
|
|
|
|
|
tools = [
|
|
|
|
|
"agile"
|
|
|
|
|
"bamboo"
|
|
|
|
|
"bitbucket"
|
|
|
|
|
"confluence"
|
|
|
|
|
"csv"
|
|
|
|
|
"hipchat"
|
|
|
|
|
"jira"
|
|
|
|
|
"servicedesk"
|
|
|
|
|
"structure"
|
|
|
|
|
"tempo"
|
|
|
|
|
"trello"
|
|
|
|
|
"upm"
|
|
|
|
|
];
|
|
|
|
|
|
2018-04-20 16:20:45 +01:00
|
|
|
|
installPhase = ''
|
|
|
|
|
mkdir -p $out/{bin,share/doc/atlassian-cli}
|
|
|
|
|
cp -r lib $out/share/java
|
|
|
|
|
cp -r README.txt license $out/share/doc/atlassian-cli
|
|
|
|
|
for tool in $tools
|
|
|
|
|
do
|
|
|
|
|
substitute ${./wrapper.sh} $out/bin/$tool \
|
|
|
|
|
--subst-var out \
|
|
|
|
|
--subst-var-by jre ${jre} \
|
|
|
|
|
--subst-var-by tool $tool
|
|
|
|
|
chmod +x $out/bin/$tool
|
|
|
|
|
done
|
|
|
|
|
'';
|
2018-05-24 08:52:10 +01:00
|
|
|
|
|
2018-04-20 16:20:45 +01:00
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
|
description = "An integrated family of CLI’s for various Atlassian applications";
|
2018-05-24 08:52:10 +01:00
|
|
|
|
homepage = https://bobswift.atlassian.net/wiki/spaces/ACLI/overview;
|
|
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
|
maintainers = with maintainers; [ twey ];
|
|
|
|
|
inherit (jre.meta) platforms;
|
2018-04-20 16:20:45 +01:00
|
|
|
|
};
|
|
|
|
|
}
|