From d89d26cdd28b23607f9840e9663f0d3860103eff Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 21 Feb 2011 21:53:42 +0000 Subject: [PATCH] * Added OpenStack Compute (Nova). It builds but doesn't work yet. svn path=/nixpkgs/trunk/; revision=26047 --- .../openstack-compute/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/applications/virtualization/openstack-compute/default.nix diff --git a/pkgs/applications/virtualization/openstack-compute/default.nix b/pkgs/applications/virtualization/openstack-compute/default.nix new file mode 100644 index 000000000000..f00e1a3dda0b --- /dev/null +++ b/pkgs/applications/virtualization/openstack-compute/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, python, setuptools, pythonPackages }: + +let version = "2011.1"; in + +stdenv.mkDerivation { + name = "openstack-compute-2011.1"; + + src = fetchurl { + url = http://launchpad.net/nova/bexar/2011.1/+download/nova-2011.1.tar.gz; + sha256 = "1g8f75mzjpkzhqk91hga5wpjh8d0kbc9fxxjk0px0qjk20qrmb45"; + }; + + buildInputs = + [ python setuptools pythonPackages.gflags pythonPackages.netaddr pythonPackages.eventlet + ]; + + preConfigure = "export HOME=$(pwd)"; + + buildPhase = "python setup.py build"; + + installPhase = + '' + p=$(toPythonPath $out) + export PYTHONPATH=$p:$PYTHONPATH + mkdir -p $p + python setup.py install --prefix=$out + ''; + + meta = { + homepage = http://nova.openstack.org/; + description = "OpenStack Compute (a.k.a. Nova), a cloud computing fabric controller"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ca2b5fcbdee3..c32628b3c28a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6452,6 +6452,8 @@ let neon = neon029; }; + openstack_compute = callPackage ../applications/virtualization/openstack-compute { }; + opera = callPackage ../applications/networking/browsers/opera { qt = qt3; };