nixpkgs-suyu/pkgs/desktops/gnome-3/games/lightsoff/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

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 }:
stdenv.mkDerivation rec {
pname = "lightsoff";
2020-08-25 09:32:42 +02:00
version = "3.38.0";
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-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 ];
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";
};
};
meta = with 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 = teams.gnome.members;
license = licenses.gpl2;
platforms = platforms.linux;
};
}