Merge pull request #309796 from alyssais/elogind-cross

elogind: fix cross
This commit is contained in:
rewine 2024-05-08 22:09:58 +08:00 committed by GitHub
commit 19166cea7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,7 @@
, udev
, eudev
, libxslt
, python3
, python3Packages
, docbook5
, docbook_xsl
, docbook_xsl_ns
@ -47,11 +47,13 @@ stdenv.mkDerivation rec {
gettext
libxslt.bin # xsltproc
docbook5 docbook_xsl docbook_xsl_ns docbook_xml_dtd_42 docbook_xml_dtd_45 # needed for docbook without Internet
(python3.withPackages (p: with p; [ lxml ])) # fixes: man/meson.build:111:0: ERROR: Could not execute command "/build/source/tools/xml_helper.py".
# fixes: man/meson.build:111:0: ERROR: Could not execute command "/build/source/tools/xml_helper.py".
python3Packages.python
python3Packages.lxml
];
buildInputs =
if enableSystemd then [ udev ] else [ eudev ];
buildInputs = [ libcap ] ++ (if enableSystemd then [ udev ] else [ eudev ]);
# Inspired by the systemd `preConfigure`.
# Conceptually we should patch all files required during the build, but not scripts