@@ -1,6 +1,7 @@
11{ fetchurl
22, fetchpatch
33, substituteAll
4+, runCommand
45, stdenv
56, pkgconfig
67, gnome3
@@ -42,7 +43,7 @@
4243, wayland-protocols
4344}:
4445
45−stdenv.mkDerivation rec {
46+let self = stdenv.mkDerivation rec {
4647 pname = "mutter";
4748 version = "3.36.3";
4849
@@ -132,6 +133,18 @@ stdenv.mkDerivation rec {
132133 '';
133134
134135 passthru = {
136+ libdir = "${self}/lib/mutter-6";
137+
138+ tests = {
139+ libdirExists = runCommand "mutter-libdir-exists" {} ''
140+ if [[ ! -d ${self.libdir} ]]; then
141+ echo "passthru.libdir should contain a directory, “${self.libdir}” is not one."
142+ exit 1
143+ fi
144+ touch $out
145+ '';
146+ };
147+
135148 updateScript = gnome3.updateScript {
136149 packageName = pname;
137150 attrPath = "gnome3.${pname}";
@@ -145,4 +158,5 @@ stdenv.mkDerivation rec {
145158 maintainers = teams.gnome.members;
146159 platforms = platforms.linux;
147160 };
148−}
161+};
162+in self