gnome3.mutter: export libdir

It is needed for finding clutter & co. typelibs by extenstions.
This commit is contained in:
Jan Tojnar 2020-07-10 19:42:13 +02:00
parent dc80d7bc4a
commit a100503b08
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,6 +1,7 @@
{ fetchurl { fetchurl
, fetchpatch , fetchpatch
, substituteAll , substituteAll
, runCommand
, stdenv , stdenv
, pkgconfig , pkgconfig
, gnome3 , gnome3
@ -42,7 +43,7 @@
, wayland-protocols , wayland-protocols
}: }:
stdenv.mkDerivation rec { let self = stdenv.mkDerivation rec {
pname = "mutter"; pname = "mutter";
version = "3.36.3"; version = "3.36.3";
@ -132,6 +133,18 @@ stdenv.mkDerivation rec {
''; '';
passthru = { 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 { updateScript = gnome3.updateScript {
packageName = pname; packageName = pname;
attrPath = "gnome3.${pname}"; attrPath = "gnome3.${pname}";
@ -145,4 +158,5 @@ stdenv.mkDerivation rec {
maintainers = teams.gnome.members; maintainers = teams.gnome.members;
platforms = platforms.linux; platforms = platforms.linux;
}; };
} };
in self