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