2018-03-13 15:46:11 -07:00
|
|
|
{ stdenv, fetchurl, meson, ninja, gettext, pkgconfig, spidermonkey_52, glib, gnome3 }:
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 12:07:20 -08:00
|
|
|
name = "gnome-shell-extensions-${version}";
|
2018-03-12 18:03:18 -07:00
|
|
|
version = "3.28.0";
|
2018-02-25 12:07:20 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-shell-extensions/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-12 18:03:18 -07:00
|
|
|
sha256 = "00xm5r4q40c0ji80vrsqg2fkrvzb1nm75p3ikv6bsmd3gfvwwp91";
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2018-03-13 15:46:11 -07:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-shell-extensions";
|
|
|
|
attrPath = "gnome3.gnome-shell-extensions";
|
|
|
|
};
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2018-03-13 15:46:11 -07:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext glib ];
|
|
|
|
buildInputs = [ spidermonkey_52 ];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
2018-03-13 15:46:11 -07:00
|
|
|
mesonFlags = [ "-Dextension_set=all" ];
|
2017-09-13 14:41:02 -07:00
|
|
|
|
2018-04-02 03:31:04 -07:00
|
|
|
preFixup = ''
|
|
|
|
# The meson build doesn't compile the schemas.
|
|
|
|
# Fixup adapted from export-zips.sh in the source.
|
|
|
|
|
|
|
|
extensiondir=$out/share/gnome-shell/extensions
|
|
|
|
schemadir=$out/share/gsettings-schemas/gnome-shell-extensions-3.28.0/glib-2.0/schemas/
|
|
|
|
|
|
|
|
glib-compile-schemas $schemadir
|
|
|
|
|
|
|
|
for f in $extensiondir/*; do
|
|
|
|
name=`basename ''${f%%@*}`
|
|
|
|
uuid=$name@gnome-shell-extensions.gcampax.github.com
|
|
|
|
schema=$schemadir/org.gnome.shell.extensions.$name.gschema.xml
|
|
|
|
|
|
|
|
if [ -f $schema ]; then
|
|
|
|
mkdir $f/schemas
|
|
|
|
ln -s $schema $f/schemas;
|
|
|
|
glib-compile-schemas $f/schemas
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2016-09-18 12:35:23 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Projects/GnomeShell/Extensions;
|
|
|
|
description = "Modify and extend GNOME Shell functionality and behavior";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|