treesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorpatrick-scho2025-11-29 14:08:41 +0100
committerpatrick-scho2025-11-29 14:08:41 +0100
commit6eebfa8f992b5dfc402d25d146256f1e6edcb3bb (patch)
tree0cdc7063d4ab9ed00dd3295d88137def51866190
parent62cb152784d956cc22c356cfe3df61e712fbe196 (diff)
downloadps-gitweb-6eebfa8f992b5dfc402d25d146256f1e6edcb3bb.tar.gz
ps-gitweb-6eebfa8f992b5dfc402d25d146256f1e6edcb3bb.zip
fix gitweb.cgi path
-rw-r--r--flake.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index 07d1cdd..5094ebe 100644
--- a/flake.nix
+++ b/flake.nix
@@ -45,19 +45,19 @@
# 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
'';
};