* Set Nova's state path to /var/lib/nova.

svn path=/nixpkgs/branches/modular-python/; revision=26609
This commit is contained in:
Eelco Dolstra 2011-03-30 14:57:51 +00:00
parent 83b4c9cd8f
commit fc99d84ef2

View file

@ -24,7 +24,14 @@ stdenv.mkDerivation rec {
intltool
] ++ pythonPath;
preConfigure = "export HOME=$(pwd)";
preConfigure =
''
export HOME=$(pwd)
# Set the built-in state location to something sensible.
sed -i nova/flags.py \
-e "/DEFINE.*'state_path'/ s|../|/var/lib/nova|"
'';
buildPhase = "python setup.py build";