libmbim: support cross
We can now enable introspection without much issues. We have to disable help2man man page generation though, since it tries to run the cross-compiled binary, which doesn't work. enable strictDeps checked with diffing
This commit is contained in:
parent
c49c81e1f0
commit
7de760af6c
1 changed files with 10 additions and 1 deletions
|
@ -9,8 +9,10 @@
|
||||||
, help2man
|
, help2man
|
||||||
, systemd
|
, systemd
|
||||||
, bash-completion
|
, bash-completion
|
||||||
|
, bash
|
||||||
, buildPackages
|
, buildPackages
|
||||||
, withIntrospection ? stdenv.hostPlatform.emulatorAvailable buildPackages
|
, withIntrospection ? stdenv.hostPlatform.emulatorAvailable buildPackages
|
||||||
|
, withDocs ? stdenv.hostPlatform == stdenv.buildPlatform
|
||||||
, gobject-introspection
|
, gobject-introspection
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -18,7 +20,8 @@ stdenv.mkDerivation rec {
|
||||||
pname = "libmbim";
|
pname = "libmbim";
|
||||||
version = "1.28.2";
|
version = "1.28.2";
|
||||||
|
|
||||||
outputs = [ "out" "dev" "man" ];
|
outputs = [ "out" "dev" ]
|
||||||
|
++ lib.optionals withDocs [ "man" ];
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
domain = "gitlab.freedesktop.org";
|
domain = "gitlab.freedesktop.org";
|
||||||
|
@ -31,14 +34,19 @@ stdenv.mkDerivation rec {
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dudevdir=${placeholder "out"}/lib/udev"
|
"-Dudevdir=${placeholder "out"}/lib/udev"
|
||||||
(lib.mesonBool "introspection" withIntrospection)
|
(lib.mesonBool "introspection" withIntrospection)
|
||||||
|
(lib.mesonBool "man" withDocs)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
pkg-config
|
pkg-config
|
||||||
python3
|
python3
|
||||||
|
] ++ lib.optionals withDocs [
|
||||||
help2man
|
help2man
|
||||||
|
] ++ lib.optionals withIntrospection [
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -46,6 +54,7 @@ stdenv.mkDerivation rec {
|
||||||
glib
|
glib
|
||||||
systemd
|
systemd
|
||||||
bash-completion
|
bash-completion
|
||||||
|
bash
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
Loading…
Reference in a new issue