2021-05-07 23:18:14 +02:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gnome, gtk3, wrapGAppsHook
|
2019-09-02 18:44:25 +02:00
|
|
|
, gettext, meson, gsound, librsvg, itstool, vala
|
2019-03-11 18:36:26 +01:00
|
|
|
, python3, ninja, desktop-file-utils }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "four-in-a-row";
|
2020-10-11 18:38:35 +02:00
|
|
|
version = "3.38.1";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 14:21:58 +01:00
|
|
|
url = "mirror://gnome/sources/four-in-a-row/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-10-11 18:38:35 +02:00
|
|
|
sha256 = "10ji60bdfdzb6wk5dkwjc3yww7hqi3yjcx1k1z7x2521h2dpdli1";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2019-03-11 18:36:26 +01:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config wrapGAppsHook gettext meson itstool vala
|
2019-03-11 18:36:26 +01:00
|
|
|
ninja python3 desktop-file-utils
|
|
|
|
];
|
2021-05-07 23:18:14 +02:00
|
|
|
buildInputs = [ gtk3 gsound librsvg gnome.adwaita-icon-theme ];
|
2018-03-14 01:41:23 +01:00
|
|
|
|
2019-03-11 18:36:26 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2018-02-25 21:07:20 +01:00
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-14 01:41:23 +01:00
|
|
|
packageName = "four-in-a-row";
|
2021-05-07 23:18:14 +02:00
|
|
|
attrPath = "gnome.four-in-a-row";
|
2018-03-14 01:41:23 +01:00
|
|
|
};
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
2016-09-18 21:35:23 +02: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/Four-in-a-row";
|
2016-09-18 21:35:23 +02:00
|
|
|
description = "Make lines of the same color to win";
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 21:35:23 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|