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