mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
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
|
{ stdenv, fetchurl, openssl, zlib, asciidoc, libxml2, libxslt
|
||||||
, docbook_xml_xslt, pkgconfig, luajit
|
, docbook_xml_xslt, pkgconfig, luajit
|
||||||
|
, gzip, bzip2, xz
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -23,6 +24,13 @@ stdenv.mkDerivation rec {
|
|||||||
openssl zlib asciidoc libxml2 libxslt docbook_xml_xslt pkgconfig luajit
|
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
|
# Give cgit a git source tree and pass configuration parameters (as make
|
||||||
# variables).
|
# variables).
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user