13 src = fetchFromGitHub {
17 hash = "sha256-pylfQjTnXiSzKPRJh9Jli1hhin/MIGIkZxLKxqlReVo=";
20 pypkgs = python3.pkgs;
22 appMap = pypkgs.buildPythonApplication rec {
23 pname = "keyd-application-mapper";
28 substituteInPlace scripts/${pname} \
29 --replace-fail /bin/sh ${runtimeShell}
32 propagatedBuildInputs = with pypkgs; [ xlib ];
37 install -Dm555 -t $out/bin scripts/${pname}
40 meta.mainProgram = "keyd-application-mapper";
49 substituteInPlace Makefile \
50 --replace-fail /usr/local ""
52 substituteInPlace keyd.service.in \
53 --replace-fail @PREFIX@ $out
56 installFlags = [ "DESTDIR=${placeholder "out"}" ];
58 buildInputs = [ systemd ];
60 enableParallelBuilding = true;
62 # post-2.4.2 may need this to unbreak the test
63 # makeFlags = [ "SOCKET_PATH/run/keyd/keyd.socket" ];
66 ln -sf ${lib.getExe appMap} $out/bin/${appMap.pname}
70 passthru.tests.keyd = nixosTests.keyd;
73 description = "Key remapping daemon for Linux";
74 license = licenses.mit;
75 maintainers = with maintainers; [ alfarel ];
76 platforms = platforms.linux;