nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.5 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "bluemix-cli"; 9 version = "0.8.0"; 10 11 src = 12 if stdenv.hostPlatform.system == "i686-linux" then 13 fetchurl { 14 name = "linux32-${version}.tar.gz"; 15 url = "https://clis.ng.bluemix.net/download/bluemix-cli/${version}/linux32"; 16 sha256 = "1ryngbjlw59x33rfd32bcz49r93a1q1g92jh7xmi9vydgqnzsifh"; 17 } 18 else 19 fetchurl { 20 name = "linux64-${version}.tar.gz"; 21 url = "https://clis.ng.bluemix.net/download/bluemix-cli/${version}/linux64"; 22 sha256 = "056zbaca430ldcn0s86vy40m5abvwpfrmvqybbr6fjwfv9zngywx"; 23 }; 24 25 installPhase = '' 26 install -m755 -D -t $out/bin bin/ibmcloud bin/ibmcloud-analytics 27 install -m755 -D -t $out/bin/cfcli bin/cfcli/cf 28 ln -sv $out/bin/ibmcloud $out/bin/bx 29 ln -sv $out/bin/ibmcloud $out/bin/bluemix 30 install -D -t "$out/share/bash-completion/completions" bx/bash_autocomplete 31 install -D -t "$out/share/zsh/site-functions" bx/zsh_autocomplete 32 ''; 33 34 meta = { 35 description = "Administration CLI for IBM BlueMix"; 36 homepage = "https://console.bluemix.net/docs/cli/index.html"; 37 downloadPage = "https://console.bluemix.net/docs/cli/reference/bluemix_cli/download_cli.html#download_install"; 38 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 39 license = lib.licenses.unfree; 40 maintainers = [ 41 lib.maintainers.tazjin 42 lib.maintainers.jensbin 43 ]; 44 platforms = [ 45 "x86_64-linux" 46 "i686-linux" 47 ]; 48 }; 49}