atlassian-cli: init at 7.8.0

+53
+31
pkgs/applications/office/atlassian-cli/default.nix
··· 1 + { stdenv, fetchzip, jre }: 2 + stdenv.mkDerivation { 3 + name = "atlassian-cli"; 4 + version = "7.8.0"; 5 + src = fetchzip { 6 + url = https://bobswift.atlassian.net/wiki/download/attachments/16285777/atlassian-cli-7.8.0-distribution.zip; 7 + sha256 = "111s4d9m6vxq8jwh1d6ar1f4n5zmyjg7gi2vl3aq63kxbfld9vw7"; 8 + extraPostFetch = "chmod go-w $out"; 9 + }; 10 + tools = [ "agile" "bamboo" "bitbucket" "confluence" "csv" 11 + "hipchat" "jira" "servicedesk" "structure" "tempo" "trello" "upm" ]; 12 + installPhase = '' 13 + mkdir -p $out/{bin,share/doc/atlassian-cli} 14 + cp -r lib $out/share/java 15 + cp -r README.txt license $out/share/doc/atlassian-cli 16 + for tool in $tools 17 + do 18 + substitute ${./wrapper.sh} $out/bin/$tool \ 19 + --subst-var out \ 20 + --subst-var-by jre ${jre} \ 21 + --subst-var-by tool $tool 22 + chmod +x $out/bin/$tool 23 + done 24 + ''; 25 + meta = with stdenv.lib; { 26 + description = "An integrated family of CLI’s for various Atlassian applications"; 27 + homepage = https://bobswift.atlassian.net/wiki/spaces/ACLI/overview; 28 + maintainers = [ maintainers.twey ]; 29 + license = [ licenses.unfreeRedistributable ]; 30 + }; 31 + }
+20
pkgs/applications/office/atlassian-cli/wrapper.sh
··· 1 + #!/bin/bash 2 + 3 + tool=@tool@ 4 + user=ATLASSIAN_${tool^^}_USER 5 + host=ATLASSIAN_${tool^^}_HOST 6 + pass=ATLASSIAN_${tool^^}_PASS 7 + 8 + [ -f ~/.atlassian-cli ] && source ~/.atlassian-cli 9 + if [ x = ${!user-x} ] || [ x = ${!host-x} ] || [ x = ${!pass-x} ] 10 + then 11 + >&2 echo please define $user, $host, and $pass in '~/.atlassian-cli' 12 + exit 1 13 + fi 14 + 15 + @jre@/bin/java \ 16 + -jar @out@/share/java/@tool@-cli-* \ 17 + --server "${!host}" \ 18 + --user "${!user}" \ 19 + --password "${!pass}" \ 20 + "$@"
+2
pkgs/top-level/all-packages.nix
··· 14766 14766 14767 14767 artha = callPackage ../applications/misc/artha { }; 14768 14768 14769 + atlassian-cli = callPackage ../applications/office/atlassian-cli { }; 14770 + 14769 14771 atomEnv = callPackage ../applications/editors/atom/env.nix { 14770 14772 gconf = gnome2.GConf; 14771 14773 };