2024-08-11 17:34:01 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
pkg-config,
|
|
|
|
gnome,
|
|
|
|
adwaita-icon-theme,
|
|
|
|
gtk3,
|
|
|
|
wrapGAppsHook3,
|
|
|
|
gettext,
|
|
|
|
meson,
|
|
|
|
gsound,
|
|
|
|
librsvg,
|
|
|
|
itstool,
|
|
|
|
vala,
|
|
|
|
python3,
|
|
|
|
ninja,
|
|
|
|
desktop-file-utils,
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "four-in-a-row";
|
2020-10-11 17:38:35 +01:00
|
|
|
version = "3.38.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-08-11 17:34:01 +01:00
|
|
|
url = "mirror://gnome/sources/four-in-a-row/${lib.versions.majorMinor version}/four-in-a-row-${version}.tar.xz";
|
2024-09-14 22:47:11 +01:00
|
|
|
hash = "sha256-IdJ2m4BBFNHPDzN0Jv2IGB7O/WCSz1YmN+s31xYwUYI=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-03-11 17:36:26 +00:00
|
|
|
nativeBuildInputs = [
|
2024-08-11 17:34:01 +01:00
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook3
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
itstool
|
|
|
|
vala
|
|
|
|
ninja
|
|
|
|
python3
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
gsound
|
|
|
|
librsvg
|
|
|
|
adwaita-icon-theme
|
2019-03-11 17:36:26 +00:00
|
|
|
];
|
2018-03-14 00:41:23 +00:00
|
|
|
|
2019-03-11 17:36:26 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2018-02-25 20:07:20 +00:00
|
|
|
passthru = {
|
2024-08-11 17:34:01 +01:00
|
|
|
updateScript = gnome.updateScript { packageName = "four-in-a-row"; };
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-05-01 06:03:10 +01:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/four-in-a-row";
|
2024-10-04 20:35:12 +01:00
|
|
|
changelog = "https://gitlab.gnome.org/GNOME/four-in-a-row/-/blob/${version}/NEWS?ref_type=tags";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Make lines of the same color to win";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "four-in-a-row";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
license = licenses.gpl2;
|
2022-12-07 19:42:33 +00:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|