cloud-init: Use prePatch instead of patchPhase hack.

This commit is contained in:
Philipp Hausmann 2017-04-21 10:55:14 +02:00
parent 59ca1f6486
commit 5083a75a92

View file

@ -12,7 +12,7 @@ in pythonPackages.buildPythonApplication rec {
};
patches = [ ./add-nixos-support.patch ];
patchPhase = ''
prePatch = ''
patchShebangs ./tools
substituteInPlace setup.py \
@ -20,8 +20,6 @@ in pythonPackages.buildPythonApplication rec {
--replace /etc $out/etc \
--replace /lib/systemd $out/lib/systemd \
--replace 'self.init_system = ""' 'self.init_system = "systemd"'
patchPhase
'';
propagatedBuildInputs = with pythonPackages; [ cheetah jinja2 prettytable