depot/third_party/nixpkgs/pkgs/desktops/gnome-3/games/four-in-a-row/default.nix
Default email 7cbac10661 Project import generated by Copybara.
GitOrigin-RevId: a371c1071161104d329f6a85d922fd92b7cbab63
2020-11-12 09:05:59 +00:00

39 lines
1.1 KiB
Nix

{ stdenv, fetchurl, pkgconfig, gnome3, gtk3, wrapGAppsHook
, gettext, meson, gsound, librsvg, itstool, vala
, python3, ninja, desktop-file-utils }:
stdenv.mkDerivation rec {
pname = "four-in-a-row";
version = "3.38.1";
src = fetchurl {
url = "mirror://gnome/sources/four-in-a-row/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "10ji60bdfdzb6wk5dkwjc3yww7hqi3yjcx1k1z7x2521h2dpdli1";
};
nativeBuildInputs = [
pkgconfig wrapGAppsHook gettext meson itstool vala
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";
};
};
meta = with stdenv.lib; {
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;
};
}