treesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorpatrick-scho2025-11-29 14:32:06 +0100
committerpatrick-scho2025-11-29 14:32:06 +0100
commitbf2a7a94feb03d69b01c1b352854b432b7481215 (patch)
treeee8bf6cbf2bd4624949b6314c583ec0dd80abe3f
parent6eebfa8f992b5dfc402d25d146256f1e6edcb3bb (diff)
downloadps-gitweb-bf2a7a94feb03d69b01c1b352854b432b7481215.tar.gz
ps-gitweb-bf2a7a94feb03d69b01c1b352854b432b7481215.zip
fix perl shebang
-rw-r--r--Makefile7
-rw-r--r--flake.nix1
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 818d2b5..da3a95b 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,13 @@ include shared.mak
MAK_DIR_GITWEB = gitweb/
include gitweb/Makefile
+ifndef PERL_PATH
+ PERL_PATH = /usr/bin/perl
+endif
+PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
+
+export PERL_PATH
+
.PHONY: gitweb
gitweb: $(MAK_DIR_GITWEB_ALL)
ifndef NO_GITWEB
diff --git a/flake.nix b/flake.nix
index 5094ebe..7f24b12 100644
--- 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" ];