about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorEric Seidel <gridaphobe@gmail.com>2015-03-21 09:13:06 -0700
committerEric Seidel <gridaphobe@gmail.com>2015-03-21 09:14:35 -0700
commit68647a4de5afa4a5743e262bf62b0d7048e08a95 (patch)
tree2ef49d0e9c4746e57ed3feade2f20d249188e1cc /pkgs/tools
parentfb03c7d7f458cd304ac62d9081da62a5a2679031 (diff)
downloadnixlib-68647a4de5afa4a5743e262bf62b0d7048e08a95.tar
nixlib-68647a4de5afa4a5743e262bf62b0d7048e08a95.tar.gz
nixlib-68647a4de5afa4a5743e262bf62b0d7048e08a95.tar.bz2
nixlib-68647a4de5afa4a5743e262bf62b0d7048e08a95.tar.lz
nixlib-68647a4de5afa4a5743e262bf62b0d7048e08a95.tar.xz
nixlib-68647a4de5afa4a5743e262bf62b0d7048e08a95.tar.zst
nixlib-68647a4de5afa4a5743e262bf62b0d7048e08a95.zip
coreutils: don't use bare `sed` on darwin
it will be BSD sed instead of GNU sed
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/misc/coreutils/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix
index ee85a4349c16..1dc5bfaccfb3 100644
--- a/pkgs/tools/misc/coreutils/default.nix
+++ b/pkgs/tools/misc/coreutils/default.nix
@@ -19,7 +19,7 @@ let
     };
 
     # The test tends to fail on btrfs and maybe other unusual filesystems.
-    postPatch = ''
+    postPatch = stdenv.lib.optionalString (!stdenv.isDarwin) ''
       sed '2i echo Skipping dd sparse test && exit 0' -i ./tests/dd/sparse.sh
     '';