2024-06-20 14:57:18 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
cargo,
|
|
|
|
rustc,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
appstream,
|
|
|
|
blueprint-compiler,
|
|
|
|
desktop-file-utils,
|
|
|
|
gettext,
|
|
|
|
wrapGAppsHook4,
|
|
|
|
libadwaita,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "keypunch";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.1";
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bragefuglseth";
|
|
|
|
repo = "keypunch";
|
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-2S5S7SvMYdEOOrF3SiwpbijsgHcSIyWEVJB41jbrn1A=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
2024-09-19 14:19:46 +00:00
|
|
|
inherit (finalAttrs) pname version src;
|
|
|
|
hash = "sha256-sD+wy1D6nl333PxlDz73YtnfBEmDzb+kNZkZI8JbfSg=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
|
|
|
|
pkg-config
|
|
|
|
appstream
|
|
|
|
blueprint-compiler
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ libadwaita ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Practice your typing skills";
|
|
|
|
homepage = "https://github.com/bragefuglseth/keypunch";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
mainProgram = "keypunch";
|
|
|
|
maintainers = with lib.maintainers; [ tomasajt ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
})
|