2016-09-18 20:35:23 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gnome3, gtk3, wrapGAppsHook
|
2019-09-02 17:44:25 +01:00
|
|
|
, gettext, meson, gsound, librsvg, itstool, vala
|
2019-03-11 17:36:26 +00:00
|
|
|
, 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";
|
2019-09-02 17:44:25 +01:00
|
|
|
version = "3.34.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnome/sources/four-in-a-row/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-02 17:44:25 +01:00
|
|
|
sha256 = "1wf0545lhmqf2hfi7wc8bqs7b9g43rm0df0ssza6517xzc4lx7jl";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-03-11 17:36:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig wrapGAppsHook gettext meson itstool vala
|
|
|
|
ninja python3 desktop-file-utils
|
|
|
|
];
|
2019-09-02 17:44:25 +01:00
|
|
|
buildInputs = [ gtk3 gsound librsvg gnome3.adwaita-icon-theme ];
|
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 = {
|
2018-03-14 00:41:23 +00:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "four-in-a-row";
|
|
|
|
attrPath = "gnome3.four-in-a-row";
|
|
|
|
};
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Four-in-a-row;
|
|
|
|
description = "Make lines of the same color to win";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|