]> gitweb.ps.run Git - ps-gitweb/blobdiff - flake.nix
fix perl shebang
[ps-gitweb] / flake.nix
index 07d1cdde93603dd61db45ef05c95e275cd05612a..7f24b128578857d431d0d9bfcc40868e124b78b0 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -32,7 +32,6 @@
             # Assuming source is in the same directory
             src = ./.;
 
-            nativeBuildInputs = [ pkgs.makeWrapper ];
             buildInputs = [ pkgs.perl pkgs.gzip ] ++ perlDeps;
 
             buildFlags = [ "gitweb" ];
 
               # Ensure the file exists (standard gitweb location)
               # If your makefile installs elsewhere, adjust this check.
-              if [ -f "$out/gitweb/gitweb.cgi" ]; then
+              if [ -f "$out/gitweb.cgi" ]; then
                 
                 # Patch gzip path
                 sed -i -e "s|'compressor' => \['gzip'|'compressor' => ['${pkgs.gzip}/bin/gzip'|" \
-                  $out/gitweb/gitweb.cgi
+                  $out/gitweb.cgi
                 
                 # Patch Perl Libs (Injecting dependencies into @INC)
                 for p in ${pkgs.lib.concatStringsSep " " perlDeps}; do
                   sed -i -e "/use CGI /i use lib \"$p/${pkgs.perl.libPrefix}\";" \
-                    "$out/gitweb/gitweb.cgi"
+                    "$out/gitweb.cgi"
                 done
               else
-                 echo "Warning: gitweb.cgi not found in $out/gitweb/"
+                 echo "Warning: gitweb.cgi not found in $out/"
               fi
             '';
           };