sourcehut: update patches
[sourcephile-nix.git] / nixpkgs / overlays / public-inbox.nix
index 0dbd4694b26aeb5c6941d2987f0df27222c60ced..636b48c20b5c0d1a0cace10748e865233e7ef454 100644 (file)
@@ -1,31 +1,36 @@
 self: super: {
   public-inbox = super.public-inbox.overrideAttrs (oldAttrs: rec {
+    /*
     version = "1.6.0";
     src = super.fetchurl {
       url = "https://yhbt.net/public-inbox.git/snapshot/public-inbox-${version}.tar.gz";
       sha256 = "sha256-Zq1cFc1PZgEMEuVt2pPAK45ca+FDPSfFCXaC/nAbSl4=";
     };
+    */
     doCheck = false;
+    /*
     buildInputs = with self.perlPackages; oldAttrs.buildInputs ++ [
-      AnyURIEscape
-      DBI
-      EmailAddressXS
-      IOSocketSSL
-      ParseRecDescent
-      Plack
-      PlackMiddlewareReverseProxy
+      Inline
+      InlineC
+      #DevelTrace
     ];
+    postInstall = ''
+      for prog in $out/bin/*; do
+          wrapProgram $prog --prefix PATH : ${super.lib.makeBinPath [ self.git self.gnumake self.stdenv.cc ]}
+      done
+
+      mv sa_config $sa_config
+    '';
     patches = map super.fetchpatch [
-      /*
       { meta.description = "[PATCH] treat $INBOX_DIR/description and gitweb.owner as UTF-8";
         url = "https://public-inbox.org/meta/20200528183708.GA549@dcvr/raw";
         sha256 = "15ad3bc1rcs8fyw26z3xcmxx8868ga6ydxzk80zic29x875kadak";
       }
-      */
     ] ++ [
       ../pkgs/public-inbox/0003-view-don-t-show-page-if-no-links-follow-it.patch
       ../pkgs/public-inbox/accept-html.patch
       #../pkgs/public-inbox/fix-git-call.patch
     ];
+    */
   });
 }