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