1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 02:24:27 +00:00
nixpkgs/pkgs/desktops/gnome-3/games/gnome-sudoku/default.nix
2020-04-13 18:50:35 +02:00

36 lines
1.2 KiB
Nix

{ stdenv, fetchurl, meson, ninja, vala, pkgconfig, gobject-introspection, gettext, gtk3, gnome3, wrapGAppsHook
, libgee, json-glib, qqwing, itstool, libxml2, python3, desktop-file-utils }:
stdenv.mkDerivation rec {
pname = "gnome-sudoku";
version = "3.36.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-sudoku/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "17a1r2jk5yygrxil1dycmamxyvyi64mr29mbyfgcx5hm2fylxxwm";
};
nativeBuildInputs = [ meson ninja vala pkgconfig gobject-introspection gettext itstool libxml2 python3 desktop-file-utils wrapGAppsHook ];
buildInputs = [ gtk3 libgee json-glib qqwing ];
postPatch = ''
chmod +x build-aux/post_install.py
patchShebangs build-aux/post_install.py
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = "gnome-sudoku";
attrPath = "gnome3.gnome-sudoku";
};
};
meta = with stdenv.lib; {
homepage = "https://wiki.gnome.org/Apps/Sudoku";
description = "Test your logic skills in this number grid puzzle";
maintainers = teams.gnome.members;
license = licenses.gpl2;
platforms = platforms.linux;
};
}