nixpkgs-suyu/pkgs/applications/office/atlassian-cli/default.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

2018-04-20 17:20:45 +02:00
{ stdenv, fetchzip, jre }:
stdenv.mkDerivation rec {
pname = "atlassian-cli";
2020-02-15 01:49:00 +01:00
version = "9.1.1";
2018-04-20 17:20:45 +02:00
src = fetchzip {
url = "https://bobswift.atlassian.net/wiki/download/attachments/16285777/${pname}-${version}-distribution.zip";
2020-02-15 01:49:00 +01:00
sha256 = "0mdf4ybp0a6c816210g76lx901qwxw727ipyiph5kbdzl4jlrpgm";
2018-04-20 17:20:45 +02:00
extraPostFetch = "chmod go-w $out";
};
tools = [
"agile"
"bamboo"
"bitbucket"
"confluence"
"csv"
"hipchat"
"jira"
"servicedesk"
"structure"
"tempo"
"trello"
"upm"
];
2018-04-20 17:20:45 +02: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-04-20 17:20:45 +02:00
meta = with stdenv.lib; {
description = "An integrated family of CLIs for various Atlassian applications";
homepage = https://bobswift.atlassian.net/wiki/spaces/ACLI/overview;
license = licenses.unfreeRedistributable;
maintainers = with maintainers; [ twey ];
inherit (jre.meta) platforms;
2018-04-20 17:20:45 +02:00
};
}