2019-05-22 12:03:39 +01:00
|
|
|
{ stdenv, fetchurl, vala, pkgconfig, gtk3, gnome3, gdk-pixbuf, librsvg, wrapGAppsHook
|
2018-09-05 01:51:09 +01:00
|
|
|
, gettext, itstool, clutter, clutter-gtk, libxml2, appstream-glib
|
|
|
|
, meson, ninja, python3 }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lightsoff";
|
2019-09-04 12:28:00 +01:00
|
|
|
version = "3.34.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnome/sources/lightsoff/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-04 12:28:00 +01:00
|
|
|
sha256 = "1yyq0962fv16rab3alq5saf4gpii9xvcfy5vbq85hhhgjpbqrfns";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-09-05 01:51:09 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
vala pkgconfig wrapGAppsHook itstool gettext appstream-glib libxml2
|
|
|
|
meson ninja python3
|
|
|
|
];
|
2019-05-22 12:03:39 +01:00
|
|
|
buildInputs = [ gtk3 gnome3.adwaita-icon-theme gdk-pixbuf librsvg clutter clutter-gtk ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-03-11 18:40:26 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2018-03-15 01:08:49 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "lightsoff";
|
|
|
|
attrPath = "gnome3.lightsoff";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Lightsoff;
|
|
|
|
description = "Puzzle game, where the objective is to turn off all of the tiles on the board";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|