mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #263962 from orhun/add/daktilo
daktilo: init at 0.5.0
This commit is contained in:
commit
0b9c0d5a5c
3 changed files with 77 additions and 0 deletions
|
@ -13330,6 +13330,15 @@
|
|||
githubId = 75299;
|
||||
name = "Malcolm Matalka";
|
||||
};
|
||||
orhun = {
|
||||
email = "orhunparmaksiz@gmail.com";
|
||||
github = "orhun";
|
||||
githubId = 24392180;
|
||||
name = "Orhun Parmaksız";
|
||||
keys = [{
|
||||
fingerprint = "165E 0FF7 C48C 226E 1EC3 63A7 F834 2482 4B3E 4B90";
|
||||
}];
|
||||
};
|
||||
orichter = {
|
||||
email = "richter-oliver@gmx.net";
|
||||
github = "ORichterSec";
|
||||
|
|
66
pkgs/tools/misc/daktilo/default.nix
Normal file
66
pkgs/tools/misc/daktilo/default.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, stdenv
|
||||
, darwin
|
||||
, unixtools
|
||||
, pkg-config
|
||||
, alsa-lib
|
||||
, xorg
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "daktilo";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "orhun";
|
||||
repo = "daktilo";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-kbJwBOUODtHdngbfa6HbbQJ0kgW6f64c0EG3y8wLymw=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-u9vL2HAUgP43ZDwIEK2u/I+KUEjQsfXda03gnGJ1Krc=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
alsa-lib
|
||||
xorg.libX11
|
||||
xorg.libXi
|
||||
xorg.libXtst
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
|
@ -31042,6 +31042,8 @@ with pkgs;
|
|||
|
||||
dablin = callPackage ../applications/radio/dablin { };
|
||||
|
||||
daktilo = callPackage ../tools/misc/daktilo { };
|
||||
|
||||
darcs = haskell.lib.compose.overrideCabal (drv: {
|
||||
configureFlags = (lib.remove "-flibrary" drv.configureFlags or []) ++ ["-f-library"];
|
||||
}) (haskell.lib.compose.justStaticExecutables haskellPackages.darcs);
|
||||
|
|
Loading…
Reference in a new issue