groff: use buildPackages to fix cross compile

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