base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / fo / four-in-a-row / package.nix
blob96c9c90475846ec32596ddcfc06b788c7decf122
2   lib,
3   stdenv,
4   fetchurl,
5   pkg-config,
6   gnome,
7   adwaita-icon-theme,
8   gtk3,
9   wrapGAppsHook3,
10   gettext,
11   meson,
12   gsound,
13   librsvg,
14   itstool,
15   vala,
16   python3,
17   ninja,
18   desktop-file-utils,
21 stdenv.mkDerivation rec {
22   pname = "four-in-a-row";
23   version = "3.38.1";
25   src = fetchurl {
26     url = "mirror://gnome/sources/four-in-a-row/${lib.versions.majorMinor version}/four-in-a-row-${version}.tar.xz";
27     hash = "sha256-IdJ2m4BBFNHPDzN0Jv2IGB7O/WCSz1YmN+s31xYwUYI=";
28   };
30   nativeBuildInputs = [
31     pkg-config
32     wrapGAppsHook3
33     gettext
34     meson
35     itstool
36     vala
37     ninja
38     python3
39     desktop-file-utils
40   ];
42   buildInputs = [
43     gtk3
44     gsound
45     librsvg
46     adwaita-icon-theme
47   ];
49   postPatch = ''
50     chmod +x build-aux/meson_post_install.py
51     patchShebangs build-aux/meson_post_install.py
52   '';
54   passthru = {
55     updateScript = gnome.updateScript { packageName = "four-in-a-row"; };
56   };
58   meta = with lib; {
59     homepage = "https://gitlab.gnome.org/GNOME/four-in-a-row";
60     changelog = "https://gitlab.gnome.org/GNOME/four-in-a-row/-/blob/${version}/NEWS?ref_type=tags";
61     description = "Make lines of the same color to win";
62     mainProgram = "four-in-a-row";
63     maintainers = teams.gnome.members;
64     license = licenses.gpl2;
65     platforms = platforms.unix;
66   };