2021-01-17 03:21:50 +01:00
|
|
|
{ lib, stdenv, fetchurl, vala, pkg-config, gtk3, gnome3, 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";
|
2020-08-25 09:32:42 +02:00
|
|
|
version = "3.38.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 14:21:58 +01:00
|
|
|
url = "mirror://gnome/sources/lightsoff/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-08-25 09:32:42 +02:00
|
|
|
sha256 = "0dpnnw8v1yk1p0y08f9c9xkgswqlm8x83dfn96798nif2zbypdnh";
|
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
|
|
|
|
];
|
2019-05-22 13:03:39 +02:00
|
|
|
buildInputs = [ gtk3 gnome3.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 = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "lightsoff";
|
|
|
|
attrPath = "gnome3.lightsoff";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|