diff options
author | Shea Levy <shea@shealevy.com> | 2018-03-01 09:11:07 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2018-03-01 09:11:07 -0500 |
commit | bcb1bb5c11b311b08bb8326e1bf2760c5500d2ea (patch) | |
tree | 3f463d7306a723cfee625c411e577e7adbeb848c /pkgs/tools/text/groff | |
parent | c54730dde8861b9baf68a25096f4a1ae896a63a7 (diff) |
groff: Fix cross-compilation
Diffstat (limited to 'pkgs/tools/text/groff')
-rw-r--r-- | pkgs/tools/text/groff/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/text/groff/default.nix b/pkgs/tools/text/groff/default.nix index 6d01c42f93d1..4495a85b2885 100644 --- a/pkgs/tools/text/groff/default.nix +++ b/pkgs/tools/text/groff/default.nix @@ -47,7 +47,7 @@ stdenv.mkDerivation rec { ] ++ stdenv.lib.optionals (ghostscript != null) [ "--with-gs=${ghostscript}/bin/gs" ] ++ stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ - "ac_cv_path_PERL=${perl}/bin/perl" + "ac_cv_path_PERL=${buildPackages.perl}/bin/perl" ]; doCheck = true; @@ -103,6 +103,8 @@ stdenv.mkDerivation rec { substituteInPlace $perl/bin/grog \ --replace $out/lib/groff/grog $perl/lib/groff/grog + '' + stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' + find $perl/ -type f -print0 | xargs --null sed -i 's|${buildPackages.perl}|${perl}|' ''; meta = with stdenv.lib; { |