Files
nixpkgs/pkgs/by-name/da/daktilo/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

67 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
unixtools,
pkg-config,
alsa-lib,
xorg,
}:
rustPlatform.buildRustPackage rec {
pname = "daktilo";
version = "0.6.0";
src = fetchFromGitHub {
owner = "orhun";
repo = "daktilo";
rev = "v${version}";
hash = "sha256-gIBWonJGX6IpxyBeMulcfQEExsG1GrBVQLZbBBA1ruc=";
};
cargoHash = "sha256-MV2XvBtVQyxu2PVCgE+5C9EBec11JwYgyeoyg29C7Ig=";
nativeBuildInputs = [
installShellFiles
pkg-config
];
buildInputs = [
alsa-lib
xorg.libX11
xorg.libXi
xorg.libXtst
];
nativeCheckInputs = [
unixtools.script
];
postInstall = ''
mkdir -p man completions
OUT_DIR=man $out/bin/daktilo-mangen
OUT_DIR=completions $out/bin/daktilo-completions
installManPage man/daktilo.1
installShellCompletion \
completions/daktilo.{bash,fish} \
--zsh completions/_daktilo
rm $out/bin/daktilo-{completions,mangen}
'';
meta = with lib; {
description = "Turn your keyboard into a typewriter";
homepage = "https://github.com/orhun/daktilo";
changelog = "https://github.com/orhun/daktilo/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [ orhun ];
mainProgram = "daktilo";
};
}