nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchFromGitHub
4, vala
5, meson
6, ninja
7, pkg-config
8, desktop-file-utils
9, appstream
10, python3
11, shared-mime-info
12, wrapGAppsHook
13, gtk3
14, pantheon
15, libgee
16, libhandy
17}:
18
19stdenv.mkDerivation rec {
20 pname = "gnonograms";
21 version = "2.1.2";
22
23 src = fetchFromGitHub {
24 owner = "jeremypw";
25 repo = "gnonograms";
26 rev = "v${version}";
27 sha256 = "sha256-TkEVjrwlr4Q5FsfcdY+9fxwaMq+DFs0RwGI2E+GT5Mk=";
28 };
29
30 postPatch = ''
31 patchShebangs meson/post_install.py
32 '';
33
34 nativeBuildInputs = [
35 vala
36 meson
37 ninja
38 pkg-config
39 desktop-file-utils
40 appstream
41 python3
42 shared-mime-info
43 wrapGAppsHook
44 ];
45
46 buildInputs = [
47 gtk3
48 pantheon.granite
49 libgee
50 libhandy
51 ];
52
53 meta = with lib; {
54 description = "Nonograms puzzle game";
55 longDescription = ''
56 An implementation of the Japanese logic puzzle "Nonograms" written in
57 Vala, allowing the user to:
58 * Draw puzzles
59 * Generate random puzzles of chosen difficulty
60 '';
61 license = licenses.gpl3Plus;
62 maintainers = with maintainers; [ fgaz ];
63 homepage = "https://github.com/jeremypw/gnonograms";
64 platforms = platforms.all;
65 };
66}