14 src = fetchFromGitHub {
18 hash = "sha256-QWr+xog16MmybhQlEWbskYa/dypb9Ld54MOdobTbyMo=";
21 pypkgs = python3.pkgs;
23 appMap = pypkgs.buildPythonApplication rec {
24 pname = "keyd-application-mapper";
29 substituteInPlace scripts/${pname} \
30 --replace /bin/sh ${runtimeShell}
33 propagatedBuildInputs = with pypkgs; [ xlib ];
38 install -Dm555 -t $out/bin scripts/${pname}
41 meta.mainProgram = pname;
45 stdenv.mkDerivation rec {
50 substituteInPlace Makefile \
51 --replace DESTDIR= DESTDIR=${placeholder "out"} \
54 substituteInPlace keyd.service \
55 --replace /usr/bin $out/bin
58 buildInputs = [ systemd ];
60 enableParallelBuilding = true;
63 ln -sf ${lib.getExe appMap} $out/bin/${appMap.pname}
68 description = "A key remapping daemon for linux.";
69 license = licenses.mit;
70 maintainers = with maintainers; [ peterhoeg ];
71 platforms = platforms.linux;