Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 43 lines 937 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 unzip, 6 makeWrapper, 7 jre, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "ec2-api-tools"; 12 version = "1.7.5.1"; 13 14 src = fetchurl { 15 url = "http://s3.amazonaws.com/ec2-downloads/${pname}-${version}.zip"; 16 sha256 = "sha256-hRq+MEA+4chqPr3d9bS//X70tYcRBTD+rfAJVNmuLzo="; 17 }; 18 19 nativeBuildInputs = [ 20 makeWrapper 21 unzip 22 ]; 23 24 installPhase = '' 25 d=$out/libexec/ec2-api-tools 26 mkdir -p $d 27 mv * $d 28 rm $d/bin/*.cmd # Windows stuff 29 for i in $d/bin/*; do 30 b=$(basename $i) 31 if [ $b = "ec2-cmd" ]; then continue; fi 32 makeWrapper $i $out/bin/$(basename $i) \ 33 --set EC2_HOME $d \ 34 --set JAVA_HOME ${jre} 35 done 36 ''; 37 38 meta = { 39 homepage = "http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351"; 40 description = "Command-line tools to create and manage Amazon EC2 virtual machines"; 41 license = lib.licenses.amazonsl; 42 }; 43}