groff: fix strictDeps by moving defining perl path out of the

cross-compile conditional
This commit is contained in:
Artturin 2021-10-22 23:17:45 +03:00
parent e73d3348f3
commit d8df341832

View file

@ -55,10 +55,10 @@ stdenv.mkDerivation rec {
# have to pass "--with-appresdir", too.
configureFlags = [
"--without-x"
"ac_cv_path_PERL=${buildPackages.perl}/bin/perl"
] ++ lib.optionals (ghostscript != null) [
"--with-gs=${ghostscript}/bin/gs"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"ac_cv_path_PERL=${buildPackages.perl}/bin/perl"
"gl_cv_func_signbit=yes"
];
@ -106,7 +106,6 @@ stdenv.mkDerivation rec {
substituteInPlace $perl/bin/grog \
--replace $out/lib/groff/grog $perl/lib/groff/grog
'' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
find $perl/ -type f -print0 | xargs --null sed -i 's|${buildPackages.perl}|${perl}|'
'';