depot/third_party/nixpkgs/pkgs/by-name/ke/keypunch/package.nix

65 lines
1.2 KiB
Nix
Raw Normal View History

{
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;
};
})