2024-08-11 17:34:13 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
vala,
|
|
|
|
pkg-config,
|
|
|
|
gtk3,
|
|
|
|
gnome,
|
|
|
|
adwaita-icon-theme,
|
|
|
|
gdk-pixbuf,
|
|
|
|
librsvg,
|
|
|
|
wrapGAppsHook3,
|
|
|
|
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";
|
2024-02-13 11:26:40 +00:00
|
|
|
version = "46.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-08-11 17:34:13 +01:00
|
|
|
url = "mirror://gnome/sources/lightsoff/${lib.versions.major version}/lightsoff-${version}.tar.xz";
|
2024-02-13 11:26:40 +00:00
|
|
|
hash = "sha256-ZysVMuBkX64C8oN6ltU57c/Uw7pPcuWR3HP+R567i5I=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-09-05 01:51:09 +01:00
|
|
|
nativeBuildInputs = [
|
2024-08-11 17:34:13 +01:00
|
|
|
vala
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook3
|
|
|
|
itstool
|
|
|
|
gettext
|
|
|
|
appstream-glib
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
adwaita-icon-theme
|
|
|
|
gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
clutter
|
|
|
|
clutter-gtk
|
2018-09-05 01:51:09 +01:00
|
|
|
];
|
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 = {
|
2024-08-11 17:34:14 +01:00
|
|
|
updateScript = gnome.updateScript { packageName = "lightsoff"; };
|
2018-03-15 01:08:49 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-05-01 06:03:10 +01:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/lightsoff";
|
2024-10-04 20:35:12 +01:00
|
|
|
changelog = "https://gitlab.gnome.org/GNOME/lightsoff/-/blob/${version}/NEWS?ref_type=tags";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Puzzle game, where the objective is to turn off all of the tiles on the board";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "lightsoff";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
license = licenses.gpl2;
|
2022-12-07 19:44:12 +00:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|