nixpkgs-suyu/pkgs/desktops/gnome/games/hitori/default.nix
2022-11-29 10:08:48 +01:00

65 lines
1.1 KiB
Nix

{ stdenv
, lib
, fetchurl
, meson
, ninja
, pkg-config
, gnome
, glib
, gtk3
, cairo
, wrapGAppsHook
, libxml2
, python3
, gettext
, itstool
, desktop-file-utils
}:
stdenv.mkDerivation rec {
pname = "hitori";
version = "3.38.4";
src = fetchurl {
url = "mirror://gnome/sources/hitori/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "iZPMkfuSN4jjieA+wqp4dtFcErrZIEz2Wy/6DtOSL30=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
itstool
desktop-file-utils
libxml2
python3
wrapGAppsHook
];
buildInputs = [
glib
gtk3
cairo
];
postPatch = ''
chmod +x build-aux/meson_post_install.py
patchShebangs build-aux/meson_post_install.py
'';
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
attrPath = "gnome.${pname}";
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Hitori";
description = "GTK application to generate and let you play games of Hitori";
maintainers = teams.gnome.members;
license = licenses.gpl2;
platforms = platforms.unix;
};
}