groff: use buildPackages to fix cross compile

This commit is contained in:
Joe Hermaszewski 2017-04-24 00:01:56 +00:00
parent 34436df0d0
commit 3eee6ea7c1

View File

@ -1,6 +1,7 @@
{ stdenv, fetchurl, perl, groff { stdenv, fetchurl, perl, groff
, ghostscript #for postscript and html output , ghostscript #for postscript and html output
, psutils, netpbm #for html output , psutils, netpbm #for html output
, buildPackages
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -49,7 +50,7 @@ stdenv.mkDerivation rec {
# Trick to get the build system find the proper 'native' groff # Trick to get the build system find the proper 'native' groff
# http://www.mail-archive.com/bug-groff@gnu.org/msg01335.html # http://www.mail-archive.com/bug-groff@gnu.org/msg01335.html
preBuild = '' preBuild = ''
makeFlags="GROFF_BIN_PATH=${groff}/bin GROFFBIN=${groff}/bin/groff" makeFlags="GROFF_BIN_PATH=${buildPackages.groff}/bin GROFFBIN=${buildPackages.groff}/bin/groff"
''; '';
}; };