anchor.diff:      hash = "sha256-QWr+xog16MmybhQlEWbskYa/dypb9Ld54MOdobTbyMo=";
     };
   
  +  pypkgs = python3.pkgs;
  +
  +  appMap = pypkgs.buildPythonApplication rec {
  +    pname = "keyd-application-mapper";
  +    inherit version src;
  +    format = "other";
  +
  +    postPatch = ''
  +      substituteInPlace scripts/${pname} \
  +        --replace /bin/sh ${runtimeShell}
  +    '';
  +
  +    propagatedBuildInputs = with pypkgs; [ xlib ];
  +
  +    dontBuild = true;
  +
  +    installPhase = ''
  +      install -Dm555 -t $out/bin scripts/${pname}
  +    '';
  +
  +    meta.mainProgram = pname;
  +  };
  +
  +in
  +stdenv.mkDerivation rec {
  +  pname = "keyd";
  +  inherit version src;
  +
     postPatch = ''
       substituteInPlace Makefile \
         --replace DESTDIR= DESTDIR=${placeholder "out"} \
  -      --replace /usr "" \
  -      --replace /var/log/keyd.log /var/log/keyd/keyd.log
  +      --replace /usr ""
   
       substituteInPlace keyd.service \
         --replace /usr/bin $out/bin
  
positive.code:   enableParallelBuilding = true;
  
    postInstall = ''
      rm -rf $out/etc
    '';
  
  
negative.code: , cmake
  , pkg-config
  , systemd
  , runtimeShell
  , python3
  }:
  
  let
    version = "2.4.2";
  
    src = fetchFromGitHub {
  