materia-theme: unset $name in install script

- install.sh uses a global environment variable called $name, if defined,
to name the theme. This is an issue because nix sets this variable to
the package name.

- Replace gnome-themes-standard to gnome-themes-extra.
This commit is contained in:
José Romildo Malaquias 2018-05-12 18:20:38 -03:00
parent 8e7f0bc862
commit 70ef1faa25

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ gnome3.glib libxml2 bc ];
buildInputs = [ gnome3.gnome-themes-standard gdk_pixbuf librsvg ];
buildInputs = [ gnome3.gnome-themes-extra gdk_pixbuf librsvg ];
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
@ -25,7 +25,8 @@ stdenv.mkDerivation rec {
-e "s|if .*which gnome-shell.*;|if true;|" \
-e "s|CURRENT_GS_VERSION=.*$|CURRENT_GS_VERSION=${gnome3.version}|"
mkdir -p $out/share/themes
./install.sh --dest $out/share/themes
# name is used internally by the package installation script
name= ./install.sh --dest $out/share/themes
rm $out/share/themes/*/COPYING
'';