2021-03-21 08:30:12 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2021-03-21 08:30:12 +01:00
|
|
|
, gtk3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, librsvg
|
|
|
|
, gsound
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, libgnome-games-support
|
|
|
|
, libgee
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, python3
|
|
|
|
, desktop-file-utils
|
|
|
|
, adwaita-icon-theme
|
|
|
|
}:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gnome-robots";
|
2021-03-21 08:30:12 +01:00
|
|
|
version = "40.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-21 08:30:12 +01:00
|
|
|
url = "mirror://gnome/sources/gnome-robots/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "04fbykj576dq1h6cycgfhh8wd6yxmlsqykvj188sbwahay42zgvg";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2019-03-11 18:38:20 +01:00
|
|
|
nativeBuildInputs = [
|
2021-03-21 08:30:12 +01:00
|
|
|
pkg-config
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
vala
|
|
|
|
python3
|
|
|
|
libxml2
|
|
|
|
wrapGAppsHook
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
desktop-file-utils
|
2019-03-11 18:38:20 +01:00
|
|
|
];
|
2021-03-21 08:30:12 +01:00
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
buildInputs = [
|
2021-03-21 08:30:12 +01:00
|
|
|
gtk3
|
|
|
|
librsvg
|
|
|
|
gsound
|
|
|
|
libgnome-games-support
|
|
|
|
libgee
|
|
|
|
adwaita-icon-theme
|
2016-09-18 21:35:23 +02:00
|
|
|
];
|
|
|
|
|
2019-03-11 18:38:20 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-03-21 08:30:12 +01:00
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2021-03-21 08:30:12 +01:00
|
|
|
packageName = "gnome-robots";
|
2021-05-07 23:18:14 +02:00
|
|
|
attrPath = "gnome.gnome-robots";
|
2021-03-21 08:30:12 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Robots";
|
2016-09-18 21:35:23 +02:00
|
|
|
description = "Avoid the robots and make them crash into each other";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "gnome-robots";
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2021-03-21 08:30:12 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2022-12-07 20:43:19 +01:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|