systemd: Take python3 from buildPackages.
This commit is contained in:
parent
24ad5077f2
commit
42c8776571
@ -9,12 +9,13 @@
|
|||||||
, patchelf
|
, patchelf
|
||||||
, getent
|
, getent
|
||||||
, hostPlatform
|
, hostPlatform
|
||||||
|
, buildPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
let
|
let
|
||||||
pythonLxmlEnv = python3Packages.python.withPackages ( ps: with ps; [ python3Packages.lxml ]);
|
pythonLxmlEnv = buildPackages.python3Packages.python.withPackages ( ps: with ps; [ python3Packages.lxml ]);
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -35,7 +36,7 @@ in
|
|||||||
[ pkgconfig intltool gperf libxslt gettext docbook_xsl docbook_xml_dtd_42 docbook_xml_dtd_45
|
[ pkgconfig intltool gperf libxslt gettext docbook_xsl docbook_xml_dtd_42 docbook_xml_dtd_45
|
||||||
ninja meson
|
ninja meson
|
||||||
coreutils # meson calls date, stat etc.
|
coreutils # meson calls date, stat etc.
|
||||||
pythonLxmlEnv glibcLocales
|
glibcLocales
|
||||||
patchelf getent
|
patchelf getent
|
||||||
];
|
];
|
||||||
buildInputs =
|
buildInputs =
|
||||||
@ -43,6 +44,8 @@ in
|
|||||||
/* cryptsetup */ libuuid m4 glib libgcrypt libgpgerror libidn2
|
/* cryptsetup */ libuuid m4 glib libgcrypt libgpgerror libidn2
|
||||||
libmicrohttpd kexectools libseccomp libffi audit lz4 bzip2 libapparmor
|
libmicrohttpd kexectools libseccomp libffi audit lz4 bzip2 libapparmor
|
||||||
iptables gnu-efi
|
iptables gnu-efi
|
||||||
|
# This is actually native, but we already pull it from buildPackages
|
||||||
|
pythonLxmlEnv
|
||||||
];
|
];
|
||||||
|
|
||||||
#dontAddPrefix = true;
|
#dontAddPrefix = true;
|
||||||
@ -128,7 +131,7 @@ in
|
|||||||
|
|
||||||
for i in src/basic/generate-gperfs.py src/resolve/generate-dns_type-gperf.py src/test/generate-sym-test.py ; do
|
for i in src/basic/generate-gperfs.py src/resolve/generate-dns_type-gperf.py src/test/generate-sym-test.py ; do
|
||||||
substituteInPlace $i \
|
substituteInPlace $i \
|
||||||
--replace "#!/usr/bin/env python" "#!${python3Packages.python}/bin/python"
|
--replace "#!/usr/bin/env python" "#!${buildPackages.python3Packages.python}/bin/python"
|
||||||
done
|
done
|
||||||
|
|
||||||
substituteInPlace src/journal/catalog.c \
|
substituteInPlace src/journal/catalog.c \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user