about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc/7.0.4-binary.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2015-09-06 10:21:43 +0200
committerVladimír Čunát <vcunat@gmail.com>2015-09-06 10:26:30 +0200
commit8f33b8cc93006c97a8f6b7ede20214992ed31fa8 (patch)
tree319163313cd55a160bbd9376151da1c96e124fd2 /pkgs/development/compilers/ghc/7.0.4-binary.nix
parentf67ddbaa6f049cdd2a5e2333e3679c4f5f4b638f (diff)
downloadnixlib-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar
nixlib-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar.gz
nixlib-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar.bz2
nixlib-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar.lz
nixlib-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar.xz
nixlib-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.tar.zst
nixlib-8f33b8cc93006c97a8f6b7ede20214992ed31fa8.zip
mass rewrite of find parameters to cross-platform style
Fixes #9044, close #9667. Thanks to @taku0 for suggesting this solution.
Now we have no modes starting with `/` or `+`.

Rewrite the `-perm` parameters of find:
 - completely safe: rewrite `/0100` and `+100` to `-0100`,
 - slightly semantics-changing: rewrite `+111` to `-0100`.
I cross-verified the `find` manual pages for Linux, Darwin, FreeBSD.
Diffstat (limited to 'pkgs/development/compilers/ghc/7.0.4-binary.nix')
-rw-r--r--pkgs/development/compilers/ghc/7.0.4-binary.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/7.0.4-binary.nix b/pkgs/development/compilers/ghc/7.0.4-binary.nix
index 7a6f1b78fa49..31df7f1fa355 100644
--- a/pkgs/development/compilers/ghc/7.0.4-binary.nix
+++ b/pkgs/development/compilers/ghc/7.0.4-binary.nix
@@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
     # On Linux, use patchelf to modify the executables so that they can
     # find editline/gmp.
     stdenv.lib.optionalString stdenv.isLinux ''
-      find . -type f -perm +100 \
+      find . -type f -perm -0100 \
           -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
           --set-rpath "${ncurses}/lib:${gmp}/lib" {} \;
       sed -i "s|/usr/bin/perl|perl\x00        |" ghc-${version}/ghc/stage2/build/tmp/ghc-stage2