1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
nix-update-script,
cargo,
rustc,
meson,
ninja,
pkg-config,
appstream,
blueprint-compiler,
desktop-file-utils,
gettext,
wrapGAppsHook4,
libadwaita,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "keypunch";
version = "5.1";
src = fetchFromGitHub {
owner = "bragefuglseth";
repo = "keypunch";
tag = "v${finalAttrs.version}";
hash = "sha256-C0WD8vBPlKvCJHVJHSfEbMIxNARoRrCn7PNebJ0rkoI=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-SQ1BI9BuUfUvafsBnC1P5YQ8qVAaer6ywuRQkfS/V1w=";
};
strictDeps = true;
nativeBuildInputs = [
rustPlatform.cargoSetupHook
cargo
rustc
meson
ninja
pkg-config
appstream
blueprint-compiler
desktop-file-utils
gettext
wrapGAppsHook4
];
buildInputs = [ libadwaita ];
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Practice your typing skills";
homepage = "https://github.com/bragefuglseth/keypunch";
license = lib.licenses.gpl3Plus;
mainProgram = "keypunch";
maintainers =
with lib.maintainers;
[
tomasajt
getchoo
]
++ lib.teams.gnome-circle.members;
platforms = lib.platforms.linux;
};
})
|