forked from mirrors/nixpkgs
cgit: fix snapshot feature by using full paths to gzip/bzip2/xz
This commit is contained in:
parent
3a917b5c2d
commit
1e3289efb4
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue