2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, vala, gnome3, gtk3, wrapGAppsHook, appstream-glib, desktop-file-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib, librsvg, libxml2, gettext, itstool, libgee, libgnome-games-support
|
|
|
|
, meson, ninja, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "gnome-klotski";
|
2020-11-12 09:05:59 +00:00
|
|
|
version = "3.38.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
2020-11-12 09:05:59 +00:00
|
|
|
sha256 = "00rwi6z0068pbq01sq2d389ffcqsh3ylq3i8zkrqvblqid1hvnlv";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config vala meson ninja python3 wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Klotski";
|
|
|
|
description = "Slide blocks to solve the puzzle";
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|