2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gnome3, gtk3, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, gettext, meson, gsound, librsvg, itstool, vala
|
|
|
|
, python3, ninja, desktop-file-utils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "four-in-a-row";
|
2020-11-12 09:05:59 +00:00
|
|
|
version = "3.38.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/four-in-a-row/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-11-12 09:05:59 +00:00
|
|
|
sha256 = "10ji60bdfdzb6wk5dkwjc3yww7hqi3yjcx1k1z7x2521h2dpdli1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config wrapGAppsHook gettext meson itstool vala
|
2020-04-24 23:36:52 +00:00
|
|
|
ninja python3 desktop-file-utils
|
|
|
|
];
|
|
|
|
buildInputs = [ gtk3 gsound librsvg gnome3.adwaita-icon-theme ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "four-in-a-row";
|
|
|
|
attrPath = "gnome3.four-in-a-row";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Four-in-a-row";
|
|
|
|
description = "Make lines of the same color to win";
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|