diff options
author | Artturin <Artturin@artturin.com> | 2021-10-23 03:19:25 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2021-11-05 19:57:03 +0200 |
commit | a57efdec05bdf12dfd8d13ff7e97f2cee19be963 (patch) | |
tree | d0f2bd783571f75d2a7bff5d90466d23070bdbbd /pkgs/development/libraries/libnotify | |
parent | bf05ab56cfd9709c96685c618a0dc8e22181150f (diff) |
libnotify: enable strictDeps
checked output with diffoscope libnotify: make gobject-introspection conditional to fix binfmt cross-compile
Diffstat (limited to 'pkgs/development/libraries/libnotify')
-rw-r--r-- | pkgs/development/libraries/libnotify/default.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libnotify/default.nix b/pkgs/development/libraries/libnotify/default.nix index b108a5c5eea54..40089e3d7e9e5 100644 --- a/pkgs/development/libraries/libnotify/default.nix +++ b/pkgs/development/libraries/libnotify/default.nix @@ -7,8 +7,9 @@ , docbook-xsl-ns , glib , gdk-pixbuf -, gobject-introspection , gnome +, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform) +, gobject-introspection }: stdenv.mkDerivation rec { @@ -27,15 +28,24 @@ stdenv.mkDerivation rec { "-Dtests=false" "-Ddocbook_docs=disabled" "-Dgtk_doc=false" + "-Dintrospection=${if withIntrospection then "enabled" else "disabled"}" ]; + strictDeps = true; + nativeBuildInputs = [ - gobject-introspection meson ninja pkg-config libxslt docbook-xsl-ns + glib # for glib-mkenums needed during the build + ] ++ lib.optionals withIntrospection [ + gobject-introspection + ]; + + buildInputs = lib.optionals withIntrospection [ + gobject-introspection ]; propagatedBuildInputs = [ |