about summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-and-tools/gitweb
diff options
context:
space:
mode:
authorKirill Elagin <kirelagin@gmail.com>2019-01-06 14:41:22 +0300
committerKirill Elagin <kirelagin@gmail.com>2019-01-06 14:56:54 +0300
commit813c6d46641976befcfdfdb1bdaaf7a84bb34d03 (patch)
treeea299015f63eea1b59c95f257bfac7e7f5121ac3 /pkgs/applications/version-management/git-and-tools/gitweb
parentbe1c03ddaf867e9a58499cd790d5cd72cffc6fca (diff)
downloadnixlib-813c6d46641976befcfdfdb1bdaaf7a84bb34d03.tar
nixlib-813c6d46641976befcfdfdb1bdaaf7a84bb34d03.tar.gz
nixlib-813c6d46641976befcfdfdb1bdaaf7a84bb34d03.tar.bz2
nixlib-813c6d46641976befcfdfdb1bdaaf7a84bb34d03.tar.lz
nixlib-813c6d46641976befcfdfdb1bdaaf7a84bb34d03.tar.xz
nixlib-813c6d46641976befcfdfdb1bdaaf7a84bb34d03.tar.zst
nixlib-813c6d46641976befcfdfdb1bdaaf7a84bb34d03.zip
git, gitweb: Fix git-instaweb
* Make the build system embed the correct path to gitweb into git-instaweb
* Move gitweb fixups to the git expression, to make sure that gitweb
used by git-instaweb is functional
* This will increase the closure size of git, but only with perlSupport
Diffstat (limited to 'pkgs/applications/version-management/git-and-tools/gitweb')
-rw-r--r--pkgs/applications/version-management/git-and-tools/gitweb/default.nix13
1 files changed, 1 insertions, 12 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/gitweb/default.nix b/pkgs/applications/version-management/git-and-tools/gitweb/default.nix
index a98dd5bc5862..f165fa6b05ca 100644
--- a/pkgs/applications/version-management/git-and-tools/gitweb/default.nix
+++ b/pkgs/applications/version-management/git-and-tools/gitweb/default.nix
@@ -1,8 +1,7 @@
-{ stdenv, git, gzip, perlPackages, fetchFromGitHub
+{ stdenv, git, fetchFromGitHub
 , gitwebTheme ? false }:
 
 let
-  gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ];
   gitwebThemeSrc = fetchFromGitHub {
     owner = "kogakure";
     repo = "gitweb-theme";
@@ -18,16 +17,6 @@ in stdenv.mkDerivation {
       mkdir $out
       mv * $out
 
-      # gzip (and optionally bzip2, xz, zip) are runtime dependencies for
-      # gitweb.cgi, need to patch so that it's found
-      sed -i -e "s|'compressor' => \['gzip'|'compressor' => ['${gzip}/bin/gzip'|" \
-          $out/gitweb.cgi
-      # Give access to CGI.pm and friends (was removed from perl core in 5.22)
-      for p in ${stdenv.lib.concatStringsSep " " gitwebPerlLibs}; do
-          sed -i -e "/use CGI /i use lib \"$p/${perlPackages.perl.libPrefix}\";" \
-              "$out/gitweb.cgi"
-      done
-
       ${stdenv.lib.optionalString gitwebTheme "cp ${gitwebThemeSrc}/* $out/static"}
   '';