nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 desktop-file-utils,
4 fetchFromGitLab,
5 gobject-introspection,
6 gsound,
7 gtk4,
8 libadwaita,
9 meson,
10 ninja,
11 nix-update-script,
12 pkg-config,
13 python3,
14 stdenv,
15 wrapGAppsHook4,
16}:
17
18stdenv.mkDerivation (finalAttrs: {
19 pname = "chess-clock";
20 version = "0.6.1";
21
22 src = fetchFromGitLab {
23 domain = "gitlab.gnome.org";
24 owner = "World";
25 repo = "chess-clock";
26 rev = "v${finalAttrs.version}";
27 hash = "sha256-XDOCHFZC3s3b/4kD1ZkhWar3kozW3vXc0pk7O6oQfiE=";
28 };
29
30 nativeBuildInputs = [
31 desktop-file-utils
32 gobject-introspection
33 meson
34 ninja
35 pkg-config
36 wrapGAppsHook4
37 ];
38
39 buildInputs = [
40 gsound
41 gtk4
42 libadwaita
43 (python3.withPackages (
44 ps: with ps; [
45 pygobject3
46 ]
47 ))
48 ];
49
50 passthru = {
51 updateScript = nix-update-script { };
52 };
53
54 meta = {
55 description = "Time games of over-the-board chess";
56 homepage = "https://gitlab.gnome.org/World/chess-clock";
57 license = lib.licenses.gpl3Plus;
58 mainProgram = "chess-clock";
59 teams = [ lib.teams.gnome-circle ];
60 };
61})