depot/pkgs/by-name/fo/four-in-a-row/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

67 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
gnome,
adwaita-icon-theme,
gtk3,
wrapGAppsHook3,
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/${lib.versions.majorMinor version}/four-in-a-row-${version}.tar.xz";
hash = "sha256-IdJ2m4BBFNHPDzN0Jv2IGB7O/WCSz1YmN+s31xYwUYI=";
};
nativeBuildInputs = [
pkg-config
wrapGAppsHook3
gettext
meson
itstool
vala
ninja
python3
desktop-file-utils
];
buildInputs = [
gtk3
gsound
librsvg
adwaita-icon-theme
];
postPatch = ''
chmod +x build-aux/meson_post_install.py
patchShebangs build-aux/meson_post_install.py
'';
passthru = {
updateScript = gnome.updateScript { packageName = "four-in-a-row"; };
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/four-in-a-row";
changelog = "https://gitlab.gnome.org/GNOME/four-in-a-row/-/blob/${version}/NEWS?ref_type=tags";
description = "Make lines of the same color to win";
mainProgram = "four-in-a-row";
maintainers = teams.gnome.members;
license = licenses.gpl2;
platforms = platforms.unix;
};
}