Author: eelco
Date: Wed Mar 30 14:37:53 2011
New Revision: 26607
URL: https://svn.nixos.org/websvn/nix/?rev=26607&sc=1

Log:
* Added euca2ools.

Added:
   nixpkgs/branches/modular-python/pkgs/tools/virtualization/euca2ools/
   
nixpkgs/branches/modular-python/pkgs/tools/virtualization/euca2ools/default.nix
Modified:
   nixpkgs/branches/modular-python/pkgs/top-level/all-packages.nix

Added: 
nixpkgs/branches/modular-python/pkgs/tools/virtualization/euca2ools/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ 
nixpkgs/branches/modular-python/pkgs/tools/virtualization/euca2ools/default.nix 
    Wed Mar 30 14:37:53 2011        (r26607)
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl, which, pythonPackages }:
+
+stdenv.mkDerivation rec {
+  name = "euca2ools-1.3.1";
+  namePrefix = "";
+
+  src = fetchurl {
+    url = "http://eucalyptussoftware.com/downloads/releases/${name}.tar.gz";;
+    sha256 = "1k4hakbxqsv2gzcdrf6dbyrpnajcan9yilddhs47cg7lgqw7b41f";
+  };
+
+  makeFlags = "PREFIX=$(out)";
+
+  buildInputs = [ which pythonPackages.python pythonPackages.wrapPython ];
+
+  pythonPath = [ pythonPackages.setuptools pythonPackages.boto 
pythonPackages.m2crypto pythonPackages.ssl ];
+
+  preBuild =
+    ''
+      substituteInPlace Makefile --replace "-o root" ""
+    
+      substituteInPlace euca2ools/Makefile \
+        --replace 'python setup.py install' "python setup.py install 
--prefix=$out"
+    '';
+
+  postInstall = "wrapPythonPrograms";
+
+  meta = {
+    homepage = http://open.eucalyptus.com/downloads;
+    description = "Tools for interacting with Amazon EC2/S3-compatible cloud 
computing services";
+    maintainers = [ stdenv.lib.maintainers.eelco ];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}

Modified: nixpkgs/branches/modular-python/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/branches/modular-python/pkgs/top-level/all-packages.nix     Wed Mar 
30 14:17:26 2011        (r26606)
+++ nixpkgs/branches/modular-python/pkgs/top-level/all-packages.nix     Wed Mar 
30 14:37:53 2011        (r26607)
@@ -602,6 +602,8 @@
 
   ethtool = callPackage ../tools/misc/ethtool { };
 
+  euca2ools = callPackage ../tools/virtualization/euca2ools { };
+
   exif = callPackage ../tools/graphics/exif { };
 
   exiftags = callPackage ../tools/graphics/exiftags { };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to