3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/office/atlassian-cli/default.nix
R. RyanTM 68577a59bf atlassian-cli: 8.0.0 -> 8.2.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/atlassian-cli/versions
2019-04-14 00:28:26 -07:00

50 lines
1.2 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ stdenv, fetchzip, jre }:
stdenv.mkDerivation rec {
name = "atlassian-cli-${version}";
version = "8.2.0";
src = fetchzip {
url = "https://bobswift.atlassian.net/wiki/download/attachments/16285777/${name}-distribution.zip";
sha256 = "0lcyyay2fyywcn096y33d77r6fpvwggv5qdkky5qy16lh6rfx1lm";
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 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;
};
}