keyd: init at 2.4.1
This commit is contained in:
parent
756bff3405
commit
b52679fe88
2 changed files with 45 additions and 0 deletions
43
pkgs/tools/inputmethods/keyd/default.nix
Normal file
43
pkgs/tools/inputmethods/keyd/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, systemd
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "keyd";
|
||||
version = "2.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rvaiya";
|
||||
repo = "keyd";
|
||||
rev = "v" + version;
|
||||
hash = "sha256-p0f8iGT4QtyWAnlcG4SfOhD94ySNNkQrnVjnGCmQwAk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace DESTDIR= DESTDIR=${placeholder "out"} \
|
||||
--replace /usr "" \
|
||||
--replace /var/log/keyd.log /var/log/keyd/keyd.log
|
||||
|
||||
substituteInPlace keyd.service \
|
||||
--replace /usr/bin $out/bin
|
||||
'';
|
||||
|
||||
buildInputs = [ systemd ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
rm -rf $out/etc
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "keyd";
|
||||
# license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
|
@ -4982,6 +4982,8 @@ with pkgs;
|
|||
|
||||
evscript = callPackage ../tools/inputmethods/evscript { };
|
||||
|
||||
keyd = callPackage ../tools/inputmethods/keyd { };
|
||||
|
||||
gebaar-libinput = callPackage ../tools/inputmethods/gebaar-libinput { stdenv = gcc10StdenvCompat; };
|
||||
|
||||
kime = callPackage ../tools/inputmethods/kime { };
|
||||
|
|
Loading…
Reference in a new issue