apt: fix cross build
This commit is contained in:
@@ -49,13 +49,23 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"man"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
gtest
|
||||
(lib.getBin libxslt)
|
||||
pkg-config
|
||||
triehash
|
||||
];
|
||||
nativeBuildInputs =
|
||||
[
|
||||
cmake
|
||||
dpkg # dpkg-architecture
|
||||
gettext # msgfmt
|
||||
gtest
|
||||
(lib.getBin libxslt)
|
||||
pkg-config
|
||||
triehash
|
||||
perlPackages.perl
|
||||
]
|
||||
++ lib.optionals withDocs [
|
||||
docbook_xml_dtd_45
|
||||
doxygen
|
||||
perlPackages.Po4a
|
||||
w3m
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
[
|
||||
@@ -64,30 +74,25 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
db
|
||||
dpkg
|
||||
gnutls
|
||||
gtest
|
||||
libgcrypt
|
||||
libgpg-error
|
||||
libseccomp
|
||||
libtasn1
|
||||
lz4
|
||||
p11-kit
|
||||
perlPackages.perl
|
||||
udev
|
||||
xxHash
|
||||
xz
|
||||
zstd
|
||||
]
|
||||
++ lib.optionals withDocs [
|
||||
docbook_xml_dtd_45
|
||||
doxygen
|
||||
perlPackages.Po4a
|
||||
w3m
|
||||
]
|
||||
++ lib.optionals withNLS [
|
||||
gettext
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeOptionType "filepath" "BERKELEY_INCLUDE_DIRS" "${lib.getDev db}/include")
|
||||
(lib.cmakeOptionType "filepath" "DPKG_DATADIR" "${dpkg}/share/dpkg")
|
||||
(lib.cmakeOptionType "filepath" "DOCBOOK_XSL" "${docbook_xsl}/share/xml/docbook-xsl")
|
||||
(lib.cmakeOptionType "filepath" "GNUTLS_INCLUDE_DIR" "${lib.getDev gnutls}/include")
|
||||
(lib.cmakeFeature "DROOT_GROUP" "root")
|
||||
|
||||
Reference in New Issue
Block a user