Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

libgudev: enable strictDeps

libgudev: make gobject-introspection conditional to fix binfmt cross-compile

Artturin 6e08facf c36938b9

+10 -3
+10 -3
pkgs/development/libraries/libgudev/default.nix
··· 5 5 , ninja 6 6 , udev 7 7 , glib 8 - , gobject-introspection 9 8 , gnome 10 9 , vala 10 + , withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform) 11 + , gobject-introspection 11 12 }: 12 13 13 14 stdenv.mkDerivation rec { ··· 20 21 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 21 22 sha256 = "1al6nr492nzbm8ql02xhzwci2kwb1advnkaky3j9636jf08v41hd"; 22 23 }; 24 + 25 + strictDeps = true; 26 + 27 + depsBuildBuild = [ pkg-config ]; 23 28 24 29 nativeBuildInputs = [ 25 30 pkg-config 26 - gobject-introspection 27 31 meson 28 32 ninja 29 33 vala 34 + glib # for glib-mkenums needed during the build 35 + ] ++ lib.optionals withIntrospection [ 36 + gobject-introspection 30 37 ]; 31 38 32 39 buildInputs = [ ··· 37 44 mesonFlags = [ 38 45 # There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway 39 46 "-Dtests=disabled" 47 + "-Dintrospection=${if withIntrospection then "enabled" else "disabled"}" 40 48 ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 41 - "-Dintrospection=disabled" 42 49 "-Dvapi=disabled" 43 50 ]; 44 51