git.iko.soy/typeable/nixpkgs
on master help sign in
git: Set PERL_PATH when building manual

Otherwise the build fails with the perplexing error make: *** No rule to make target 'cmd-list.made', needed by 'doc.dep'. Stop. make: Leaving directory '/tmp/nix-build-git-2.16.3.drv-0/git-2.16.3/Documentation' on NixOS (but not on Debian, where it succeeds, presumably since it picks up the system perl).

commitb26ae506a94026d044124d3620a4fe1cdfd568ad authorBen Gamari <ben@smart-cactus.org> dateTue 24 Apr 2018, 18:53 (9 years ago) parent7139c65
1 file changed+3−2
pkgs/applications/version-management/git-and-tools/git/default.nix+3−2
pkgs/applications/version-management/git-and-tools/git/default.nix+3−2
@@ -1,4 +1,5 @@
1−{ fetchurl, stdenv, curl, openssl, zlib, expat, perl, python, gettext, cpio
1+{ fetchurl, stdenv, buildPackages
2+, curl, openssl, zlib, expat, perl, python, gettext, cpio
23, gnugrep, gnused, gawk, coreutils # needed at runtime by git-filter-branch etc
34, openssh, pcre2
45, asciidoc, texinfo, xmlto, docbook2x, docbook_xsl, docbook_xml_dtd_45
@@ -199,7 +200,7 @@ stdenv.mkDerivation {
199200 '')
200201
201202 + stdenv.lib.optionalString withManual ''# Install man pages and Info manual
202− make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES cmd-list.made install install-info \
203+ make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES PERL_PATH="${buildPackages.perl}/bin/perl" cmd-list.made install install-info \
203204 -C Documentation ''
204205
205206 + (if guiSupport then ''