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