anchor.diff:      cp ${buildShell "${src}/gitsrht-shell"}/bin/gitsrht-shell $out/bin/gitsrht-shell
       cp ${buildDispatcher "${src}/gitsrht-dispatch"}/bin/gitsrht-dispatch $out/bin/gitsrht-dispatch
       cp ${buildKeys "${src}/gitsrht-keys"}/bin/gitsrht-keys $out/bin/gitsrht-keys
  -    cp ${buildUpdateHook "${src}/gitsrht-update-hook"}/bin/gitsrht-update-hook $out/bin/gitsrht-update-hook
  -    cp ${buildAPI "${src}/api"}/bin/api $out/bin/gitsrht-api
  +    cp ${updateHook}/bin/gitsrht-update-hook $out/bin/gitsrht-update-hook
     '';
  -
  -  dontUseSetuptoolsCheck = true;
  +  passthru = {
  +    inherit updateHook;
  +  };
   
     meta = with lib; {
       homepage = "https://git.sr.ht/~sircmpwn/git.sr.ht";
  
positive.code:     vendorSha256 = "0fwzqpjv8x5y3w3bfjd0x0cvqjjak23m0zj88hf32jpw49xmjkih";
    };
  
    buildAPI = src: buildGoModule {
      inherit src version;
      pname = "gitsrht-api";
      vendorSha256 = "0d6kmsbsgj2q5nddx4w675zbsiarffj9vqplwvqk7dwz4id2wnif";
    };
  in buildPythonPackage rec {
    pname = "gitsrht";
    inherit version;
  
    src = fetchgit {
      url = "https://git.sr.ht/~sircmpwn/git.sr.ht";
      rev = version;
      sha256 = "0g7aj5wlns0m3kf2aajqjjb5fwk5vbb8frrkdfp4118235h3xcqy";
    };
  
    nativeBuildInputs = srht.nativeBuildInputs;
  
    propagatedBuildInputs = [
      srht
      minio
      pygit2
      scmsrht
    ];
  
    preBuild = ''
      export PKGVER=${version}
    '';
  
    postInstall = ''
  
negative.code: { lib
  , fetchFromSourcehut
  , buildPythonPackage
  , buildGoModule
  , python
  , srht
  , pygit2
  , scmsrht
  }:
  let
    version = "0.72.8";
  
    src = fetchFromSourcehut {
      owner = "~sircmpwn";
      repo = "git.sr.ht";
      rev = version;
      sha256 = "sha256-AB2uzajO5PtcpJfbOOTfuDFM6is5K39v3AZJ1hShRNc=";
    };
  
    buildShell = src: buildGoModule {
      inherit src version;
      pname = "gitsrht-shell";
      vendorSha256 = "sha256-aqUFICp0C2reqb2p6JCPAUIRsxzSv0t9BHoNWrTYfqk=";
    };
  
    buildDispatcher = src: buildGoModule {
      inherit src version;
      pname = "gitsrht-dispatcher";
      vendorSha256 = "sha256-qWXPHo86s6iuRBhRMtmD5jxnAWKdrWHtA/iSUkdw89M=";
    };
  
    buildKeys = src: buildGoModule {
  