cloud-init: Use prePatch instead of patchPhase hack.
This commit is contained in:
@@ -12,7 +12,7 @@ in pythonPackages.buildPythonApplication rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./add-nixos-support.patch ];
|
patches = [ ./add-nixos-support.patch ];
|
||||||
patchPhase = ''
|
prePatch = ''
|
||||||
patchShebangs ./tools
|
patchShebangs ./tools
|
||||||
|
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
@@ -20,8 +20,6 @@ in pythonPackages.buildPythonApplication rec {
|
|||||||
--replace /etc $out/etc \
|
--replace /etc $out/etc \
|
||||||
--replace /lib/systemd $out/lib/systemd \
|
--replace /lib/systemd $out/lib/systemd \
|
||||||
--replace 'self.init_system = ""' 'self.init_system = "systemd"'
|
--replace 'self.init_system = ""' 'self.init_system = "systemd"'
|
||||||
|
|
||||||
patchPhase
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [ cheetah jinja2 prettytable
|
propagatedBuildInputs = with pythonPackages; [ cheetah jinja2 prettytable
|
||||||
|
|||||||
Reference in New Issue
Block a user