2021-05-07 21:18:14 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, vala, gnome, gtk3, wrapGAppsHook, appstream-glib, desktop-file-utils
|
2019-03-11 17:37:20 +00:00
|
|
|
, glib, librsvg, libxml2, gettext, itstool, libgee, libgnome-games-support
|
|
|
|
, meson, ninja, python3
|
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2021-06-22 21:44:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-15 00:06:04 +00:00
|
|
|
pname = "gnome-klotski";
|
2021-03-21 00:52:54 +00:00
|
|
|
version = "3.38.2";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-22 21:44:58 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-klotski/${lib.versions.majorMinor version}/gnome-klotski-${version}.tar.xz";
|
2021-03-21 00:52:54 +00:00
|
|
|
sha256 = "1qm01hdd5yp8chig62bj10912vclbdvywwczs84sfg4zci2phqwi";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-03-11 17:37:20 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config vala meson ninja python3 wrapGAppsHook
|
2019-03-11 17:37:20 +00:00
|
|
|
gettext itstool libxml2 appstream-glib desktop-file-utils
|
2021-05-07 21:18:14 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2019-03-11 17:37:20 +00:00
|
|
|
];
|
|
|
|
buildInputs = [ glib gtk3 librsvg libgee libgnome-games-support ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
2018-03-15 00:06:04 +00:00
|
|
|
|
2018-02-25 20:07:20 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2019-09-08 23:38:31 +00:00
|
|
|
packageName = pname;
|
2021-05-07 21:18:14 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
2018-03-15 00:06:04 +00:00
|
|
|
};
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
2016-09-18 19:35:23 +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/Klotski";
|
2016-09-18 19:35:23 +00:00
|
|
|
description = "Slide blocks to solve the puzzle";
|
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;
|
|
|
|
};
|
|
|
|
}
|