mermet: gitolite: update
[sourcephile-nix.git] / nixpkgs / overlays / public-inbox.nix
index 5ea4315e3011a97ca9e9432d2f90271f39bdad0e..e53c997cc02a5014a541c4d53ec0813e52d5ce71 100644 (file)
@@ -1,10 +1,36 @@
-self: super: {
-  public-inbox = super.public-inbox.overrideAttrs (oldAttrs: rec {
-    version = "1.5.0";
-    src = super.fetchurl {
+_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 = "11fvgcs4vj4jbvwij3fh3jilvmaz0qzv09jcbhxb2hkpzdymzywk";
-    };
-    patches = [];
+      sha256 = "sha256-Zq1cFc1PZgEMEuVt2pPAK45ca+FDPSfFCXaC/nAbSl4=";
+      };
+    */
+    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
+      ];
+    */
   });
 }