2011-03-29 16:15:08 +00:00
|
|
|
{ stdenv, fetchurl, pythonPackages }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2011-02-21 21:53:42 +00:00
|
|
|
|
|
|
|
let version = "2011.1"; in
|
|
|
|
|
2011-03-29 16:15:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-02-21 21:53:42 +00:00
|
|
|
name = "openstack-compute-2011.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://launchpad.net/nova/bexar/2011.1/+download/nova-2011.1.tar.gz;
|
|
|
|
sha256 = "1g8f75mzjpkzhqk91hga5wpjh8d0kbc9fxxjk0px0qjk20qrmb45";
|
|
|
|
};
|
|
|
|
|
2011-03-29 16:15:08 +00:00
|
|
|
pythonPath =
|
|
|
|
[ pythonPackages.setuptools pythonPackages.eventlet pythonPackages.greenlet
|
|
|
|
pythonPackages.gflags pythonPackages.netaddr pythonPackages.sqlalchemy
|
|
|
|
pythonPackages.carrot
|
2011-02-21 21:53:42 +00:00
|
|
|
];
|
|
|
|
|
2011-03-29 16:15:08 +00:00
|
|
|
buildInputs =
|
|
|
|
[ pythonPackages.python
|
|
|
|
pythonPackages.wrapPython
|
|
|
|
] ++ pythonPath;
|
|
|
|
|
2011-02-21 21:53:42 +00:00
|
|
|
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
|
2011-03-29 16:15:08 +00:00
|
|
|
|
|
|
|
wrapPythonPrograms
|
2011-02-21 21:53:42 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://nova.openstack.org/;
|
|
|
|
description = "OpenStack Compute (a.k.a. Nova), a cloud computing fabric controller";
|
|
|
|
};
|
|
|
|
}
|