nixpkgs/pkgs/desktops/gnome-3/games/four-in-a-row/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, gnome3, gtk3, wrapGAppsHook
2019-03-11 17:36:26 +00:00
, gettext, meson, libcanberra-gtk3, librsvg, itstool, vala
, python3, ninja, desktop-file-utils }:
stdenv.mkDerivation rec {
name = "four-in-a-row-${version}";
2019-03-11 17:36:26 +00:00
version = "3.32.0";
src = fetchurl {
url = "mirror://gnome/sources/four-in-a-row/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2019-03-11 17:36:26 +00:00
sha256 = "0h4wmbkdp7x3gp9sbxmvla316m8n6iy4f5sq0ksldj0z7ghlx9zl";
};
2019-03-11 17:36:26 +00:00
nativeBuildInputs = [
pkgconfig wrapGAppsHook gettext meson itstool vala
ninja python3 desktop-file-utils
];
2019-02-13 21:47:50 +00:00
buildInputs = [ gtk3 libcanberra-gtk3 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
'';
passthru = {
2018-03-14 00:41:23 +00:00
updateScript = gnome3.updateScript {
packageName = "four-in-a-row";
attrPath = "gnome3.four-in-a-row";
};
};
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;
};
}