66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, pkgconfig
|
|
, gnome3
|
|
, glib
|
|
, gtk3
|
|
, cairo
|
|
, wrapGAppsHook
|
|
, libxml2
|
|
, python3
|
|
, gettext
|
|
, itstool
|
|
, desktop-file-utils
|
|
, adwaita-icon-theme
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hitori";
|
|
version = "3.38.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/hitori/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "0gjbbh4gym8wwa4jjg7wwifjh2h7bf6m0x23c5jjxvrf3vln9gfq";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
gettext
|
|
itstool
|
|
desktop-file-utils
|
|
libxml2
|
|
python3
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
cairo
|
|
adwaita-icon-theme
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x build-aux/meson_post_install.py
|
|
patchShebangs build-aux/meson_post_install.py
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
attrPath = "gnome3.${pname}";
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.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.linux;
|
|
};
|
|
}
|