2018-04-20 16:20:45 +01:00
|
|
|
|
{ stdenv, fetchzip, jre }:
|
2018-05-24 05:37:33 +01:00
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
name = "atlassian-cli-${version}";
|
2018-04-20 16:20:45 +01:00
|
|
|
|
version = "7.8.0";
|
|
|
|
|
src = fetchzip {
|
2018-05-24 05:37:33 +01:00
|
|
|
|
url = "https://bobswift.atlassian.net/wiki/download/attachments/16285777/${name}-distribution.zip";
|
2018-04-20 16:20:45 +01:00
|
|
|
|
sha256 = "111s4d9m6vxq8jwh1d6ar1f4n5zmyjg7gi2vl3aq63kxbfld9vw7";
|
|
|
|
|
extraPostFetch = "chmod go-w $out";
|
|
|
|
|
};
|
|
|
|
|
tools = [ "agile" "bamboo" "bitbucket" "confluence" "csv"
|
|
|
|
|
"hipchat" "jira" "servicedesk" "structure" "tempo" "trello" "upm" ];
|
|
|
|
|
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
|
|
|
|
|
'';
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
|
description = "An integrated family of CLI’s for various Atlassian applications";
|
|
|
|
|
homepage = https://bobswift.atlassian.net/wiki/spaces/ACLI/overview;
|
|
|
|
|
maintainers = [ maintainers.twey ];
|
|
|
|
|
license = [ licenses.unfreeRedistributable ];
|
|
|
|
|
};
|
|
|
|
|
}
|