summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text/groff
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-10 13:46:38 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-10 14:08:19 -0400
commit1080e264fb19f55e5c20edb0fad744ff2366c3dc (patch)
tree1a4ea8caa42886fab3313906a77d3bca6c7145c4 /pkgs/tools/text/groff
parent7781d7b8758c042e3a8d09d5e20f7329046fa00b (diff)
groff: Get rid of crossAttrs
Diffstat (limited to 'pkgs/tools/text/groff')
-rw-r--r--pkgs/tools/text/groff/default.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/tools/text/groff/default.nix b/pkgs/tools/text/groff/default.nix
index 4495a85b2885..27581134ca34 100644
--- a/pkgs/tools/text/groff/default.nix
+++ b/pkgs/tools/text/groff/default.nix
@@ -50,15 +50,14 @@ stdenv.mkDerivation rec {
"ac_cv_path_PERL=${buildPackages.perl}/bin/perl"
];
- doCheck = true;
-
- crossAttrs = {
+ makeFlags = stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
# Trick to get the build system find the proper 'native' groff
# http://www.mail-archive.com/bug-groff@gnu.org/msg01335.html
- preBuild = ''
- makeFlags="GROFF_BIN_PATH=${buildPackages.groff}/bin GROFFBIN=${buildPackages.groff}/bin/groff"
- '';
- };
+ "GROFF_BIN_PATH=${buildPackages.groff}/bin"
+ "GROFFBIN=${buildPackages.groff}/bin/groff"
+ ];
+
+ doCheck = true;
# Remove example output with (random?) colors and creation date
# to avoid non-determinism in the output.