groff: use buildPackages to fix cross compile

+2 -1
+2 -1
pkgs/tools/text/groff/default.nix
··· 1 { stdenv, fetchurl, perl, groff 2 , ghostscript #for postscript and html output 3 , psutils, netpbm #for html output 4 }: 5 6 stdenv.mkDerivation rec { ··· 49 # Trick to get the build system find the proper 'native' groff 50 # http://www.mail-archive.com/bug-groff@gnu.org/msg01335.html 51 preBuild = '' 52 - makeFlags="GROFF_BIN_PATH=${groff}/bin GROFFBIN=${groff}/bin/groff" 53 ''; 54 }; 55
··· 1 { stdenv, fetchurl, perl, groff 2 , ghostscript #for postscript and html output 3 , psutils, netpbm #for html output 4 + , buildPackages 5 }: 6 7 stdenv.mkDerivation rec { ··· 50 # Trick to get the build system find the proper 'native' groff 51 # http://www.mail-archive.com/bug-groff@gnu.org/msg01335.html 52 preBuild = '' 53 + makeFlags="GROFF_BIN_PATH=${buildPackages.groff}/bin GROFFBIN=${buildPackages.groff}/bin/groff" 54 ''; 55 }; 56