cloud-init: Use prePatch instead of patchPhase hack.
This commit is contained in:
parent
59ca1f6486
commit
5083a75a92
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue