]> gitweb.ps.run Git - flakes/blobdiff - flake.nix
update
[flakes] / flake.nix
index 11a976b6fe1725443918562c1834c1ca9d737cac..9b31d836882727415981938f601875b775b2eb78 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -1,5 +1,5 @@
 {
-  description = "resetmsmice";
+  description = "my flakes";
 
   inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
   inputs.flake-utils.url = "github:numtide/flake-utils";
           postPatch = ''substituteInPlace ui-repolist.c --replace "master" "main"'';
         });
       };
+      gitweb = final: prev: {
+        gitweb = prev.gitweb.overrideAttrs (oldAttrs: {
+          postPatch = (oldAttrs.postPatch or "") + ''
+            ls -l gitweb/gitweb.perl
+            ls -l . ./*
+            cp ${./patches/gitweb.perl} gitweb/gitweb.perl
+            exit 1
+          '';
+        });
+      };
     };
     inherit (flake-utils.lib.eachDefaultSystem (system:
       let
@@ -46,8 +56,8 @@
           type = "app";
           program = "${self.packages.${system}.resetmsmice}/bin/resetmsmice";
         };
-      });
-    )
+      })
+    ) packages apps;
   };
 }