systemd: Take python3 from buildPackages.

This commit is contained in:
Shea Levy 2018-02-25 09:07:14 -05:00
parent 24ad5077f2
commit 42c8776571
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -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 \