From 5bd074a11583b4cf5f02929f02e48bd5f7402e47 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 7 Apr 2011 09:58:46 +0000 Subject: [PATCH] * Install the CA generation script. svn path=/nixpkgs/trunk/; revision=26734 --- pkgs/applications/virtualization/nova/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/virtualization/nova/default.nix b/pkgs/applications/virtualization/nova/default.nix index 55dc16d4d3c5..db4a41609166 100644 --- a/pkgs/applications/virtualization/nova/default.nix +++ b/pkgs/applications/virtualization/nova/default.nix @@ -40,6 +40,9 @@ stdenv.mkDerivation rec { -e "/DEFINE.*'state_path'/ s|../|/var/lib/nova|" substituteInPlace nova/virt/images.py --replace /usr/bin/curl ${curl}/bin/curl + + substituteInPlace nova/api/ec2/cloud.py \ + --replace 'sh genrootca.sh' $out/libexec/nova/genrootca.sh ''; buildPhase = "python setup.py build"; @@ -71,6 +74,10 @@ stdenv.mkDerivation rec { # 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 + + # Install the certificate generation script. + cp CA/genrootca.sh $out/libexec/nova/ + cp CA/openssl.cnf.tmpl $out/libexec/nova/ ''; doCheck = false; # !!! fix