2019-03-15 17:43:04 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, gnome3
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, cairo
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libxml2
|
|
|
|
, python3
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, desktop-file-utils
|
|
|
|
, adwaita-icon-theme
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-15 17:43:04 +00:00
|
|
|
pname = "hitori";
|
2020-03-11 16:09:39 +00:00
|
|
|
version = "3.36.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-15 17:43:04 +00:00
|
|
|
url = "mirror://gnome/sources/hitori/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-03-11 16:09:39 +00:00
|
|
|
sha256 = "0mq1jv8rbmvksnhbm1d25kcvcfr9lq58qipcacn7wa26xpx7cvs5";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-03-15 17:43:04 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
desktop-file-utils
|
|
|
|
libxml2
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2019-03-15 17:43:04 +00:00
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
cairo
|
|
|
|
adwaita-icon-theme
|
2016-09-18 20:35:23 +01: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 = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Hitori;
|
2019-09-03 23:49:40 +01:00
|
|
|
description = "GTK application to generate and let you play games of Hitori";
|
2016-09-18 20:35:23 +01:00
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|