2021-03-25 15:30:34 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, pkg-config
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2021-03-25 15:30:34 +00:00
|
|
|
, gtk3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, librsvg
|
|
|
|
, gsound
|
|
|
|
, clutter-gtk
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, vala
|
|
|
|
, python3
|
|
|
|
, libxml2
|
|
|
|
, libgee
|
|
|
|
, libgnome-games-support
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, desktop-file-utils
|
|
|
|
, hicolor-icon-theme
|
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gnome-nibbles";
|
2020-11-17 14:26:29 +00:00
|
|
|
version = "3.38.2";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 13:21:58 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-nibbles/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-11-17 14:26:29 +00:00
|
|
|
sha256 = "1naknfbciydbym79a0jq039xf0033z8gyln48c0qsbcfr2qn8yj5";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2021-03-25 15:30:34 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with recent Vala.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-nibbles/-/commit/62964e9256fcac616109af874dbb2bd8342a9853.patch";
|
|
|
|
sha256 = "4VijELRxycS8rwi1HU9U3h9K/VtdQjJntfdtMN9Uz34=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-nibbles/-/commit/1b48446068608aff9b5edf1fdbd4b8c0d9f0be94.patch";
|
|
|
|
sha256 = "X0+Go5ae4F06WTPDYc2HIIax8X4RDgUGO6A6Qp8UifQ=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-09-02 16:45:04 +00:00
|
|
|
nativeBuildInputs = [
|
2021-03-25 15:30:34 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
vala
|
|
|
|
python3
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
desktop-file-utils
|
|
|
|
hicolor-icon-theme
|
2019-09-02 16:45:04 +00:00
|
|
|
];
|
2021-03-25 15:30:34 +00:00
|
|
|
|
2016-09-18 19:35:23 +00:00
|
|
|
buildInputs = [
|
2021-03-25 15:30:34 +00:00
|
|
|
gtk3
|
|
|
|
librsvg
|
|
|
|
gsound
|
|
|
|
clutter-gtk
|
2021-05-07 21:18:14 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2021-03-25 15:30:34 +00:00
|
|
|
libgee
|
|
|
|
libgnome-games-support
|
2016-09-18 19:35:23 +00:00
|
|
|
];
|
|
|
|
|
2018-08-25 11:42:37 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-08-25 11:42:37 +00:00
|
|
|
packageName = "gnome-nibbles";
|
2021-05-07 21:18:14 +00:00
|
|
|
attrPath = "gnome.gnome-nibbles";
|
2018-08-25 11:42:37 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-09-18 19:35:23 +00:00
|
|
|
description = "Guide a worm around a maze";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Nibbles";
|
2016-09-18 19:35:23 +00:00
|
|
|
license = licenses.gpl2;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 19:35:23 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|