mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
* Some hackery to get Nova to work.
svn path=/nixpkgs/branches/modular-python/; revision=26628
This commit is contained in:
parent
2cf4ac9c33
commit
50ae7ab689
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, pythonPackages, intltool, libvirt, libxml2Python }:
|
{ stdenv, fetchurl, pythonPackages, intltool, libvirt, libxml2Python, curl }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
|
@ -35,6 +35,8 @@ stdenv.mkDerivation rec {
|
||||||
# Set the built-in state location to something sensible.
|
# Set the built-in state location to something sensible.
|
||||||
sed -i nova/flags.py \
|
sed -i nova/flags.py \
|
||||||
-e "/DEFINE.*'state_path'/ s|../|/var/lib/nova|"
|
-e "/DEFINE.*'state_path'/ s|../|/var/lib/nova|"
|
||||||
|
|
||||||
|
substituteInPlace nova/virt/images.py --replace /usr/bin/curl ${curl}/bin/curl
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = "python setup.py build";
|
buildPhase = "python setup.py build";
|
||||||
|
@ -60,6 +62,10 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
mkdir -p $out/etc
|
mkdir -p $out/etc
|
||||||
cp etc/nova-api.conf $out/etc/
|
cp etc/nova-api.conf $out/etc/
|
||||||
|
|
||||||
|
# Nova makes some weird assumptions about where to find its own
|
||||||
|
# programs relative to the Python directory.
|
||||||
|
ln -sfn $out/bin $out/lib/${pythonPackages.python.libPrefix}/site-packages/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false; # !!! fix
|
doCheck = false; # !!! fix
|
||||||
|
|
Loading…
Reference in a new issue