From 8db05ade402e2baac59078ea73fc689bc4b3b1c7 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 10 May 2018 14:11:23 -0400 Subject: gnused: Remove crossAttrs Use a cleaner help2man trick from coreutils --- pkgs/tools/text/gnused/default.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'pkgs/tools/text') diff --git a/pkgs/tools/text/gnused/default.nix b/pkgs/tools/text/gnused/default.nix index 72d632533ff..b463a92ba74 100644 --- a/pkgs/tools/text/gnused/default.nix +++ b/pkgs/tools/text/gnused/default.nix @@ -14,13 +14,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ perl ]; preConfigure = "patchShebangs ./build-aux/help2man"; - crossAttrs = { - # The tarball ships with a fine prebuilt manpage, but the make rules try to rebuild it, - # which won't work when cross compiling as help2man needs to execute the binaries. - postConfigure = '' - sed -i Makefile -e 's|doc/sed\.1:|dummy:|' - ''; - }; + # Prevents attempts of running 'help2man' on cross-built binaries. + PERL = if stdenv.hostPlatform == stdenv.buildPlatform then null else "missing"; meta = { homepage = http://www.gnu.org/software/sed/; -- cgit 1.4.1