2018-03-15 00:06:04 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, vala, gnome3, 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 20:35:23 +01:00
|
|
|
|
2018-03-15 00:06:04 +00:00
|
|
|
let
|
|
|
|
pname = "gnome-klotski";
|
2020-03-11 16:08:48 +00:00
|
|
|
version = "3.36.0";
|
2018-03-15 00:06:04 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2020-03-11 16:08:48 +00:00
|
|
|
sha256 = "06gsg3s8hyhhsk11f1ld2anzv1czg1429483gbv9lr2p7fnq7pyy";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-03-11 17:37:20 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig vala meson ninja python3 wrapGAppsHook
|
|
|
|
gettext itstool libxml2 appstream-glib desktop-file-utils
|
|
|
|
gnome3.adwaita-icon-theme
|
|
|
|
];
|
|
|
|
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 = {
|
2018-03-15 00:06:04 +00:00
|
|
|
updateScript = gnome3.updateScript {
|
2019-09-09 00:38:31 +01:00
|
|
|
packageName = pname;
|
2018-03-15 00:06:04 +00:00
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Klotski;
|
|
|
|
description = "Slide blocks to solve the puzzle";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|