···854854 </varlistentry>
855855856856 <varlistentry>
857857- <term><varname>dontPatchSourceShebangs</varname></term>
858858- <listitem><para>Same as <varname>dontPatchShebangs</varname>, but applied
859859- to the source code before configurePhase.</para></listitem>
860860- </varlistentry>
861861-862862- <varlistentry>
863857 <term><varname>forceShare</varname></term>
864858 <listitem><para>The list of directories that must be moved from
865859 <filename>$out</filename> to <filename>$out/share</filename>.
···18181919 enableParallelBuilding = true;
20202121+ patchPhase = "patchShebangs .";
2222+2123 # This file should normally require a gtk-update-icon-cache -q /usr/share/icons/hicolor command
2224 # It have no reasons to exist in a redistribuable package
2325 postInstall = "rm $out/share/icons/hicolor/icon-theme.cache";
···21212222 cmakeFlags = "-DENABLE_AUTODOWNLOAD=OFF -DBUILD_DESCRIPTION='NixOS' -DCMAKE_BUILD_TYPE=Release";
23232424+ prePatch = ''
2525+ patchShebangs .
2626+ '';
2727+2428 # Disable the kadu plugins I wasn't able to get to work
2529 patchPhase = ''
2630 sed -i -e '/mpd_mediaplayer/d' \
···38383939 # Ensure NSS installation works fine
4040 configureFlags="$configureFlags --with-nssdir=$out/lib"
4141+ patchShebangs src/gns/nss/install-nss-plugin.sh
4142 '';
42434344 doCheck = false;
+1
pkgs/applications/networking/p2p/gnunet/svn.nix
···47474848 # Ensure NSS installation works fine
4949 configureFlags="$configureFlags --with-nssdir=$out/lib"
5050+ patchShebangs src/gns/nss/install-nss-plugin.sh
50515152 sh contrib/pogen.sh
5253 sh bootstrap
···2222 fi
2323 cd go
24242525+ patchShebangs ./ # replace /bin/bash
2526 rm src/pkg/net/{multicast_test.go,parse_test.go,port_test.go}
2627 # The os test wants to read files in an existing path. Just it don't be /usr/bin.
2728 sed -i 's,/usr/bin,'"`pwd`", src/pkg/os/os_test.go
+1
pkgs/development/compilers/go/1.1.nix
···3333 fi
3434 cd go
35353636+ patchShebangs ./ # replace /bin/bash
3637 # !!! substituteInPlace does not seems to be effective.
3738 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
3839 sed -i 's,/lib64/ld-linux-x86-64.so.2,${loaderAmd64},' src/cmd/6l/asm.c
+1
pkgs/development/compilers/go/1.2.nix
···3232 fi
3333 cd go
34343535+ patchShebangs ./ # replace /bin/bash
3536 # !!! substituteInPlace does not seems to be effective.
3637 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
3738 sed -i 's,/lib64/ld-linux-x86-64.so.2,${loaderAmd64},' src/cmd/6l/asm.c
+1
pkgs/development/compilers/go/default.nix
···3030 fi
3131 cd go
32323333+ patchShebangs ./ # replace /bin/bash
3334 # !!! substituteInPlace does not seems to be effective.
3435 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
3536 sed -i 's,/lib64/ld-linux-x86-64.so.2,${loaderAmd64},' src/cmd/6l/asm.c
+2
pkgs/development/compilers/julia/0.3.3.nix
···106106107107 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/usr/lib:$PWD/usr/lib/julia"
108108109109+ patchShebangs . contrib
110110+109111 export PATH="$PATH:${stdenv.cc.libc}/sbin"
110112111113 # ldconfig doesn't seem to ever work on NixOS; system-wide ldconfig cache
+1
pkgs/development/compilers/mono/default.nix
···3535 # LLVM path to point into the Mono LLVM build, since it's private anyway.
3636 preBuild = ''
3737 makeFlagsArray=(INSTALL=`type -tp install`)
3838+ patchShebangs ./
3839 '' + stdenv.lib.optionalString withLLVM ''
3940 substituteInPlace mono/mini/aot-compiler.c --replace "llvm_path = g_strdup (\"\")" "llvm_path = g_strdup (\"${llvm}/bin/\")"
4041 '';
···2525 cd source
2626 # Related to issue #1963
2727 sed -i 's/-fuse-ld=gold//g' Makefile
2828+ for i in util/*.pl; do
2929+ patchShebangs $i
3030+ done
3131+ patchShebangs util/gen-mi-enum
2832 '';
29333034 makeFlags = [ "prefix=$(out)" "FORCE_CC=gcc" "FORCE_CXX=g++" "HOSTCXX=g++"
···3636 # 'chrpath' is used to be able to run the tests from the source tree, but
3737 # we use $LD_LIBRARY_PATH instead.
3838 buildPhase = ''
3939+ patchShebangs .
3940 mkdir -p "$out"
4041 sed -e "s|python_lib_dir = .*|python_lib_dir = \"$out/lib/${pythonFull.libPrefix}/site-packages\"|" -i SConstruct
4142 scons prefix="$out" leapfetch=no gpsd_user=${gpsdUser} gpsd_group=${gpsdGroup} \