2022-03-24 05:00:24 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2019-03-15 17:43:04 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2019-03-15 17:43:04 +00:00
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, cairo
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libxml2
|
|
|
|
, python3
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, desktop-file-utils
|
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-15 17:43:04 +00:00
|
|
|
pname = "hitori";
|
2022-04-05 02:50:59 +00:00
|
|
|
version = "3.38.4";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 13:21:58 +00:00
|
|
|
url = "mirror://gnome/sources/hitori/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-04-05 02:50:59 +00:00
|
|
|
sha256 = "iZPMkfuSN4jjieA+wqp4dtFcErrZIEz2Wy/6DtOSL30=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-03-15 17:43:04 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2019-03-15 17:43:04 +00:00
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
desktop-file-utils
|
|
|
|
libxml2
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2019-03-15 17:43:04 +00:00
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
cairo
|
2016-09-18 19:35:23 +00:00
|
|
|
];
|
|
|
|
|
2019-03-15 17:43:04 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2019-03-15 17:43:04 +00:00
|
|
|
packageName = pname;
|
2021-05-07 21:18:14 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
2019-03-15 17:43:04 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Hitori";
|
2019-09-03 22:49:40 +00:00
|
|
|
description = "GTK application to generate and let you play games of Hitori";
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 19:35:23 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|