2021-01-15 22:18:51 +00:00
|
|
|
|
{ lib, stdenv, fetchzip, jre }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "atlassian-cli";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
version = "9.5.0";
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
src = fetchzip {
|
|
|
|
|
url = "https://bobswift.atlassian.net/wiki/download/attachments/16285777/${pname}-${version}-distribution.zip";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
sha256 = "sha256-EAoydA2lg4K1gTgzn9patNw7pcCdU/OPfaEG1OfEJ18=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
tools = [
|
|
|
|
|
"agile"
|
|
|
|
|
"bamboo"
|
|
|
|
|
"bitbucket"
|
|
|
|
|
"confluence"
|
|
|
|
|
"csv"
|
|
|
|
|
"hipchat"
|
|
|
|
|
"jira"
|
|
|
|
|
"servicedesk"
|
|
|
|
|
"structure"
|
|
|
|
|
"tempo"
|
|
|
|
|
"trello"
|
|
|
|
|
"upm"
|
|
|
|
|
];
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
2020-04-24 23:36:52 +00: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
|
|
|
|
|
'';
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "An integrated family of CLI’s for various Atlassian applications";
|
|
|
|
|
homepage = "https://bobswift.atlassian.net/wiki/spaces/ACLI/overview";
|
|
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
|
maintainers = with maintainers; [ twey ];
|
|
|
|
|
inherit (jre.meta) platforms;
|
|
|
|
|
};
|
|
|
|
|
}
|