sourcehut: use StateDirectory
[sourcephile-nix.git] / nixpkgs / overlays / public-inbox.nix
index 5ea4315e3011a97ca9e9432d2f90271f39bdad0e..636b48c20b5c0d1a0cace10748e865233e7ef454 100644 (file)
@@ -1,10 +1,36 @@
 self: super: {
   public-inbox = super.public-inbox.overrideAttrs (oldAttrs: rec {
-    version = "1.5.0";
+    /*
+    version = "1.6.0";
     src = super.fetchurl {
       url = "https://yhbt.net/public-inbox.git/snapshot/public-inbox-${version}.tar.gz";
-      sha256 = "11fvgcs4vj4jbvwij3fh3jilvmaz0qzv09jcbhxb2hkpzdymzywk";
+      sha256 = "sha256-Zq1cFc1PZgEMEuVt2pPAK45ca+FDPSfFCXaC/nAbSl4=";
     };
-    patches = [];
+    */
+    doCheck = false;
+    /*
+    buildInputs = with self.perlPackages; oldAttrs.buildInputs ++ [
+      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
+    ];
+    */
   });
 }