summary refs log tree commit diff
path: root/pkgs/tools/text/gnused
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-10 14:11:23 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-10 14:12:38 -0400
commit8db05ade402e2baac59078ea73fc689bc4b3b1c7 (patch)
tree3e6b26c248d46264cef08d6138f1430742ee1849 /pkgs/tools/text/gnused
parent2b28312bc2146e6a2729cd46ae79ab666d3c6521 (diff)
downloadnixpkgs-8db05ade402e2baac59078ea73fc689bc4b3b1c7.tar
nixpkgs-8db05ade402e2baac59078ea73fc689bc4b3b1c7.tar.gz
nixpkgs-8db05ade402e2baac59078ea73fc689bc4b3b1c7.tar.bz2
nixpkgs-8db05ade402e2baac59078ea73fc689bc4b3b1c7.tar.lz
nixpkgs-8db05ade402e2baac59078ea73fc689bc4b3b1c7.tar.xz
nixpkgs-8db05ade402e2baac59078ea73fc689bc4b3b1c7.tar.zst
nixpkgs-8db05ade402e2baac59078ea73fc689bc4b3b1c7.zip
gnused: Remove crossAttrs
Use a cleaner help2man trick from coreutils
Diffstat (limited to 'pkgs/tools/text/gnused')
-rw-r--r--pkgs/tools/text/gnused/default.nix9
1 files changed, 2 insertions, 7 deletions
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/;