Merge pull request #225977 from uninsane/pr/sane/cross-2023-04-12-staging

This commit is contained in:
Artturi 2023-04-15 20:50:30 +03:00 committed by GitHub
commit f13b89d6ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 4 deletions

View File

@ -61,6 +61,8 @@ let
(lib.withFeatureAs httpSupport "serf" serf)
"--with-zlib=${zlib.dev}"
"--with-sqlite=${sqlite.dev}"
"--with-apr=${apr.dev}"
"--with-apr-util=${aprutil.dev}"
] ++ lib.optionals javahlBindings [
"--enable-javahl"
"--with-jdk=${jdk}"

View File

@ -48,6 +48,8 @@ stdenv.mkDerivation rec {
lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
substituteInPlace Makefile \
--replace "-ldb-6.9" "-ldb"
substituteInPlace apu-1-config \
--replace "-ldb-6.9" "-ldb"
'';
propagatedBuildInputs = [ apr expat libiconv libxcrypt ]

View File

@ -22,7 +22,8 @@ stdenv.mkDerivation rec {
pname = "libqmi";
version = "1.32.2";
outputs = [ "out" "dev" "devdoc" ];
outputs = [ "out" "dev" ]
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
@ -47,6 +48,7 @@ stdenv.mkDerivation rec {
pkg-config
gobject-introspection
python3
] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
@ -68,6 +70,7 @@ stdenv.mkDerivation rec {
"-Dudevdir=${placeholder "out"}/lib/udev"
(lib.mesonBool "gtk_doc" (stdenv.buildPlatform == stdenv.hostPlatform))
(lib.mesonBool "introspection" (stdenv.buildPlatform == stdenv.hostPlatform))
(lib.mesonBool "man" (stdenv.buildPlatform == stdenv.hostPlatform))
];
doCheck = true;

View File

@ -11,10 +11,11 @@ index 4358a23..6ce7776 100644
if target in build_targets:
return PathVariable.PathIsDirCreate(key, val, env)
else:
@@ -155,6 +155,7 @@ if sys.platform == 'win32':
@@ -155,6 +155,8 @@ if sys.platform == 'win32':
env = Environment(variables=opts,
tools=('default', 'textfile',),
CPPPATH=['.', ],
+ AR=os.environ['AR'],
+ ENV=os.environ,
)

View File

@ -18,9 +18,22 @@ stdenv.mkDerivation rec {
--replace @@NIX_UTILLINUX@@ ${util-linux}/bin
'';
nativeBuildInputs = [ autoreconfHook libtool pkg-config ];
nativeBuildInputs = [
autoreconfHook
libtool
perl
pkg-config
];
buildInputs = [ pam libHX util-linux libxml2 pcre2 perl openssl cryptsetup ];
buildInputs = [
cryptsetup
libHX
libxml2
openssl
pam
pcre2
util-linux
];
enableParallelBuilding = true;