summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-07-10 19:42:13 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-07-10 19:42:13 +0200
commita100503b083b603bf0e2d44fd825e88325aeca1a (patch)
tree8ab03d6b57db35ba8a426ee810890f050a88ea1b /pkgs/desktops/gnome-3
parentdc80d7bc4a244120b3d766746c41c0d9c5f81dfa (diff)
downloadnixpkgs-a100503b083b603bf0e2d44fd825e88325aeca1a.tar
nixpkgs-a100503b083b603bf0e2d44fd825e88325aeca1a.tar.gz
nixpkgs-a100503b083b603bf0e2d44fd825e88325aeca1a.tar.bz2
nixpkgs-a100503b083b603bf0e2d44fd825e88325aeca1a.tar.lz
nixpkgs-a100503b083b603bf0e2d44fd825e88325aeca1a.tar.xz
nixpkgs-a100503b083b603bf0e2d44fd825e88325aeca1a.tar.zst
nixpkgs-a100503b083b603bf0e2d44fd825e88325aeca1a.zip
gnome3.mutter: export libdir
It is needed for finding clutter & co. typelibs by extenstions.
Diffstat (limited to 'pkgs/desktops/gnome-3')
-rw-r--r--pkgs/desktops/gnome-3/core/mutter/default.nix18
1 files changed, 16 insertions, 2 deletions
diff --git a/pkgs/desktops/gnome-3/core/mutter/default.nix b/pkgs/desktops/gnome-3/core/mutter/default.nix
index 42697911bd4..9e67b5e835d 100644
--- a/pkgs/desktops/gnome-3/core/mutter/default.nix
+++ b/pkgs/desktops/gnome-3/core/mutter/default.nix
@@ -1,6 +1,7 @@
 { fetchurl
 , fetchpatch
 , substituteAll
+, runCommand
 , stdenv
 , pkgconfig
 , gnome3
@@ -42,7 +43,7 @@
 , wayland-protocols
 }:
 
-stdenv.mkDerivation rec {
+let self = stdenv.mkDerivation rec {
   pname = "mutter";
   version = "3.36.3";
 
@@ -132,6 +133,18 @@ stdenv.mkDerivation rec {
   '';
 
   passthru = {
+    libdir = "${self}/lib/mutter-6";
+
+    tests = {
+      libdirExists = runCommand "mutter-libdir-exists" {} ''
+        if [[ ! -d ${self.libdir} ]]; then
+          echo "passthru.libdir should contain a directory, “${self.libdir}” is not one."
+          exit 1
+        fi
+        touch $out
+      '';
+    };
+
     updateScript = gnome3.updateScript {
       packageName = pname;
       attrPath = "gnome3.${pname}";
@@ -145,4 +158,5 @@ stdenv.mkDerivation rec {
     maintainers = teams.gnome.members;
     platforms = platforms.linux;
   };
-}
+};
+in self