ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, vala, pkg-config, gtk3, gnome3, gdk-pixbuf, librsvg, wrapGAppsHook
|
|
, gettext, itstool, clutter, clutter-gtk, libxml2, appstream-glib
|
|
, meson, ninja, python3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lightsoff";
|
|
version = "3.38.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/lightsoff/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "0dpnnw8v1yk1p0y08f9c9xkgswqlm8x83dfn96798nif2zbypdnh";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
vala pkg-config 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";
|
|
};
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|