depot/third_party/nixpkgs/pkgs/by-name/ke/keypunch/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

64 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
cargo,
rustc,
meson,
ninja,
pkg-config,
appstream,
blueprint-compiler,
desktop-file-utils,
gettext,
wrapGAppsHook4,
libadwaita,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "keypunch";
version = "3.1";
src = fetchFromGitHub {
owner = "bragefuglseth";
repo = "keypunch";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-2S5S7SvMYdEOOrF3SiwpbijsgHcSIyWEVJB41jbrn1A=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) pname version src;
hash = "sha256-sD+wy1D6nl333PxlDz73YtnfBEmDzb+kNZkZI8JbfSg=";
};
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;
};
})