2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, vala, pkgconfig, gtk3, gnome3, gdk-pixbuf, librsvg, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, gettext, itstool, clutter, clutter-gtk, libxml2, appstream-glib
|
|
|
|
, meson, ninja, python3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lightsoff";
|
2020-11-12 09:05:59 +00:00
|
|
|
version = "3.38.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/lightsoff/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-11-12 09:05:59 +00:00
|
|
|
sha256 = "0dpnnw8v1yk1p0y08f9c9xkgswqlm8x83dfn96798nif2zbypdnh";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
vala pkgconfig wrapGAppsHook itstool gettext appstream-glib libxml2
|
|
|
|
meson ninja python3
|
|
|
|
];
|
|
|
|
buildInputs = [ gtk3 gnome3.adwaita-icon-theme gdk-pixbuf librsvg clutter clutter-gtk ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "lightsoff";
|
|
|
|
attrPath = "gnome3.lightsoff";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 = teams.gnome.members;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|