3
0
Fork 0
forked from mirrors/nixpkgs

cgit: fix snapshot feature by using full paths to gzip/bzip2/xz

This commit is contained in:
Bjørn Forsman 2014-01-19 22:59:51 +01:00
parent 3a917b5c2d
commit 1e3289efb4

View file

@ -1,5 +1,6 @@
{ stdenv, fetchurl, openssl, zlib, asciidoc, libxml2, libxslt
, docbook_xml_xslt, pkgconfig, luajit
, gzip, bzip2, xz
}:
stdenv.mkDerivation rec {
@ -23,6 +24,13 @@ stdenv.mkDerivation rec {
openssl zlib asciidoc libxml2 libxslt docbook_xml_xslt pkgconfig luajit
];
postPatch = ''
sed -e 's|"gzip"|"${gzip}/bin/gzip"|' \
-e 's|"bzip2"|"${bzip2}/bin/bzip2"|' \
-e 's|"xz"|"${xz}/bin/xz"|' \
-i ui-snapshot.c
'';
# Give cgit a git source tree and pass configuration parameters (as make
# variables).
preBuild = ''