lightsoff: use wrapGAppsHook
This commit is contained in:
parent
13d2056cbf
commit
ac0daa6dd9
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, gtk3, gnome3, gdk_pixbuf, librsvg, makeWrapper
|
{ stdenv, fetchurl, pkgconfig, gtk3, gnome3, gdk_pixbuf, librsvg, wrapGAppsHook
|
||||||
, intltool, itstool, clutter, clutter_gtk, libxml2 }:
|
, intltool, itstool, clutter, clutter_gtk, libxml2, dconf }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "lightsoff-${gnome3.version}.1.1";
|
name = "lightsoff-${gnome3.version}.1.1";
|
||||||
|
@ -9,18 +9,11 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "00a2jv7wr6fxrzk7avwa0wspz429ad7ri7v95jv31nqn5q73y4c0";
|
sha256 = "00a2jv7wr6fxrzk7avwa0wspz429ad7ri7v95jv31nqn5q73y4c0";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig gtk3 gnome3.defaultIconTheme gdk_pixbuf librsvg
|
buildInputs = [ pkgconfig gtk3 gnome3.defaultIconTheme gdk_pixbuf librsvg dconf
|
||||||
libxml2 clutter clutter_gtk makeWrapper itstool intltool ];
|
libxml2 clutter clutter_gtk wrapGAppsHook itstool intltool ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
preFixup = ''
|
|
||||||
wrapProgram "$out/bin/lightsoff" \
|
|
||||||
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
|
|
||||||
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH:$out/share" \
|
|
||||||
--prefix GIO_EXTRA_MODULES : "${gnome3.dconf}/lib/gio/modules"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://wiki.gnome.org/Apps/Lightsoff;
|
homepage = https://wiki.gnome.org/Apps/Lightsoff;
|
||||||
description = "Puzzle game, where the objective is to turn off all of the tiles on the board";
|
description = "Puzzle game, where the objective is to turn off all of the tiles on the board";
|
||||||
|
|
Loading…
Reference in New Issue