mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 10:04:08 +00:00
upower: fix cross-compilation support
Disable gtk-doc and introspection when cross-compiling
This commit is contained in:
parent
41b500b737
commit
48d473f1c3
@ -18,13 +18,15 @@
|
|||||||
, systemd
|
, systemd
|
||||||
, useIMobileDevice ? true
|
, useIMobileDevice ? true
|
||||||
, libimobiledevice
|
, libimobiledevice
|
||||||
|
, withDocs ? (stdenv.buildPlatform == stdenv.hostPlatform)
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "upower";
|
pname = "upower";
|
||||||
version = "0.99.17";
|
version = "0.99.17";
|
||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" ];
|
outputs = [ "out" "dev" ]
|
||||||
|
++ lib.optionals withDocs [ "devdoc" ];
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
domain = "gitlab.freedesktop.org";
|
domain = "gitlab.freedesktop.org";
|
||||||
@ -34,6 +36,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "xvvqzGxgkuGcvnO12jnLURNJUoSlnMw2g/mnII+i6Bs=";
|
sha256 = "xvvqzGxgkuGcvnO12jnLURNJUoSlnMw2g/mnII+i6Bs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
|
depsBuildBuild = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
@ -66,6 +74,8 @@ stdenv.mkDerivation rec {
|
|||||||
"-Dos_backend=linux"
|
"-Dos_backend=linux"
|
||||||
"-Dsystemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
"-Dsystemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
||||||
"-Dudevrulesdir=${placeholder "out"}/lib/udev/rules.d"
|
"-Dudevrulesdir=${placeholder "out"}/lib/udev/rules.d"
|
||||||
|
"-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "auto" else "disabled"}"
|
||||||
|
"-Dgtk-doc=${lib.boolToString withDocs}"
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false; # fails with "env: './linux/integration-test': No such file or directory"
|
doCheck = false; # fails with "env: './linux/integration-test': No such file or directory"
|
||||||
|
Loading…
Reference in New Issue
Block a user