13 rustPlatform.buildRustPackage rec {
17 src = fetchFromGitHub {
21 hash = "sha256-gIBWonJGX6IpxyBeMulcfQEExsG1GrBVQLZbBBA1ruc=";
24 cargoHash = "sha256-lBlzXTkhsEboTby5tH7WfsvZxUwtw7sLYVJRozjI1D4=";
36 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
37 darwin.apple_sdk.frameworks.Security
45 mkdir -p man completions
47 OUT_DIR=man $out/bin/daktilo-mangen
48 OUT_DIR=completions $out/bin/daktilo-completions
50 installManPage man/daktilo.1
51 installShellCompletion \
52 completions/daktilo.{bash,fish} \
53 --zsh completions/_daktilo
55 rm $out/bin/daktilo-{completions,mangen}
59 description = "Turn your keyboard into a typewriter";
60 homepage = "https://github.com/orhun/daktilo";
61 changelog = "https://github.com/orhun/daktilo/blob/${src.rev}/CHANGELOG.md";
62 license = with licenses; [ asl20 mit ];
63 maintainers = with maintainers; [ orhun ];
64 mainProgram = "daktilo";