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