groff: Fix cross-compilation

This commit is contained in:
Shea Levy 2018-03-01 09:11:07 -05:00
parent c54730dde8
commit bcb1bb5c11
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27
1 changed files with 3 additions and 1 deletions

View File

@ -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; {