···854 </varlistentry>
855856 <varlistentry>
857- <term><varname>dontPatchSourceShebangs</varname></term>
858- <listitem><para>Same as <varname>dontPatchShebangs</varname>, but applied
859- to the source code before configurePhase.</para></listitem>
860- </varlistentry>
861-862- <varlistentry>
863 <term><varname>forceShare</varname></term>
864 <listitem><para>The list of directories that must be moved from
865 <filename>$out</filename> to <filename>$out/share</filename>.
···854 </varlistentry>
855856 <varlistentry>
000000857 <term><varname>forceShare</varname></term>
858 <listitem><para>The list of directories that must be moved from
859 <filename>$out</filename> to <filename>$out/share</filename>.
···1819 enableParallelBuilding = true;
200021 # This file should normally require a gtk-update-icon-cache -q /usr/share/icons/hicolor command
22 # It have no reasons to exist in a redistribuable package
23 postInstall = "rm $out/share/icons/hicolor/icon-theme.cache";
···1819 enableParallelBuilding = true;
2021+ patchPhase = "patchShebangs .";
22+23 # This file should normally require a gtk-update-icon-cache -q /usr/share/icons/hicolor command
24 # It have no reasons to exist in a redistribuable package
25 postInstall = "rm $out/share/icons/hicolor/icon-theme.cache";
···2122 cmakeFlags = "-DENABLE_AUTODOWNLOAD=OFF -DBUILD_DESCRIPTION='NixOS' -DCMAKE_BUILD_TYPE=Release";
23000024 # Disable the kadu plugins I wasn't able to get to work
25 patchPhase = ''
26 sed -i -e '/mpd_mediaplayer/d' \
···2122 cmakeFlags = "-DENABLE_AUTODOWNLOAD=OFF -DBUILD_DESCRIPTION='NixOS' -DCMAKE_BUILD_TYPE=Release";
2324+ prePatch = ''
25+ patchShebangs .
26+ '';
27+28 # Disable the kadu plugins I wasn't able to get to work
29 patchPhase = ''
30 sed -i -e '/mpd_mediaplayer/d' \
···3839 # Ensure NSS installation works fine
40 configureFlags="$configureFlags --with-nssdir=$out/lib"
041 '';
4243 doCheck = false;
···3839 # Ensure NSS installation works fine
40 configureFlags="$configureFlags --with-nssdir=$out/lib"
41+ patchShebangs src/gns/nss/install-nss-plugin.sh
42 '';
4344 doCheck = false;
+1
pkgs/applications/networking/p2p/gnunet/svn.nix
···4748 # Ensure NSS installation works fine
49 configureFlags="$configureFlags --with-nssdir=$out/lib"
05051 sh contrib/pogen.sh
52 sh bootstrap
···4748 # Ensure NSS installation works fine
49 configureFlags="$configureFlags --with-nssdir=$out/lib"
50+ patchShebangs src/gns/nss/install-nss-plugin.sh
5152 sh contrib/pogen.sh
53 sh bootstrap
+2
pkgs/applications/science/logic/cvc4/default.nix
···910 buildInputs = [ gmp libantlr3c boost ];
110012 doChecks = true;
1314 meta = with stdenv.lib; {
···22 fi
23 cd go
24025 rm src/pkg/net/{multicast_test.go,parse_test.go,port_test.go}
26 # The os test wants to read files in an existing path. Just it don't be /usr/bin.
27 sed -i 's,/usr/bin,'"`pwd`", src/pkg/os/os_test.go
···22 fi
23 cd go
2425+ patchShebangs ./ # replace /bin/bash
26 rm src/pkg/net/{multicast_test.go,parse_test.go,port_test.go}
27 # The os test wants to read files in an existing path. Just it don't be /usr/bin.
28 sed -i 's,/usr/bin,'"`pwd`", src/pkg/os/os_test.go
+1
pkgs/development/compilers/go/1.1.nix
···33 fi
34 cd go
35036 # !!! substituteInPlace does not seems to be effective.
37 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
38 sed -i 's,/lib64/ld-linux-x86-64.so.2,${loaderAmd64},' src/cmd/6l/asm.c
···33 fi
34 cd go
3536+ patchShebangs ./ # replace /bin/bash
37 # !!! substituteInPlace does not seems to be effective.
38 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
39 sed -i 's,/lib64/ld-linux-x86-64.so.2,${loaderAmd64},' src/cmd/6l/asm.c
+1
pkgs/development/compilers/go/1.2.nix
···32 fi
33 cd go
34035 # !!! substituteInPlace does not seems to be effective.
36 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
37 sed -i 's,/lib64/ld-linux-x86-64.so.2,${loaderAmd64},' src/cmd/6l/asm.c
···32 fi
33 cd go
3435+ patchShebangs ./ # replace /bin/bash
36 # !!! substituteInPlace does not seems to be effective.
37 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
38 sed -i 's,/lib64/ld-linux-x86-64.so.2,${loaderAmd64},' src/cmd/6l/asm.c
+1
pkgs/development/compilers/go/default.nix
···30 fi
31 cd go
32033 # !!! substituteInPlace does not seems to be effective.
34 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
35 sed -i 's,/lib64/ld-linux-x86-64.so.2,${loaderAmd64},' src/cmd/6l/asm.c
···30 fi
31 cd go
3233+ patchShebangs ./ # replace /bin/bash
34 # !!! substituteInPlace does not seems to be effective.
35 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
36 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
···106107 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/usr/lib:$PWD/usr/lib/julia"
10800109 export PATH="$PATH:${stdenv.cc.libc}/sbin"
110111 # ldconfig doesn't seem to ever work on NixOS; system-wide ldconfig cache
···106107 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/usr/lib:$PWD/usr/lib/julia"
108109+ patchShebangs . contrib
110+111 export PATH="$PATH:${stdenv.cc.libc}/sbin"
112113 # ldconfig doesn't seem to ever work on NixOS; system-wide ldconfig cache
+1
pkgs/development/compilers/mono/default.nix
···35 # LLVM path to point into the Mono LLVM build, since it's private anyway.
36 preBuild = ''
37 makeFlagsArray=(INSTALL=`type -tp install`)
038 '' + stdenv.lib.optionalString withLLVM ''
39 substituteInPlace mono/mini/aot-compiler.c --replace "llvm_path = g_strdup (\"\")" "llvm_path = g_strdup (\"${llvm}/bin/\")"
40 '';
···35 # LLVM path to point into the Mono LLVM build, since it's private anyway.
36 preBuild = ''
37 makeFlagsArray=(INSTALL=`type -tp install`)
38+ patchShebangs ./
39 '' + stdenv.lib.optionalString withLLVM ''
40 substituteInPlace mono/mini/aot-compiler.c --replace "llvm_path = g_strdup (\"\")" "llvm_path = g_strdup (\"${llvm}/bin/\")"
41 '';
···35 ( map (var: ''-DPACKAGE_${var}_DIR=\""${builtins.getAttr var foolVars}"\"'')
36 (builtins.attrNames foolVars) );
3738- preConfigure = stdenv.lib.optionalString useSystemd /* bogus chroot detection */ ''
0039 sed '/libsystemd-login autoconfigured, but system does not appear to use systemd/s/.*/:/' -i configure
40 ''
41 # ‘libpolkit-agent-1.so’ should call the setuid wrapper on
···35 ( map (var: ''-DPACKAGE_${var}_DIR=\""${builtins.getAttr var foolVars}"\"'')
36 (builtins.attrNames foolVars) );
3738+ preConfigure = ''
39+ patchShebangs .
40+ '' + stdenv.lib.optionalString useSystemd /* bogus chroot detection */ ''
41 sed '/libsystemd-login autoconfigured, but system does not appear to use systemd/s/.*/:/' -i configure
42 ''
43 # ‘libpolkit-agent-1.so’ should call the setuid wrapper on
···25 cd source
26 # Related to issue #1963
27 sed -i 's/-fuse-ld=gold//g' Makefile
000028 '';
2930 makeFlags = [ "prefix=$(out)" "FORCE_CC=gcc" "FORCE_CXX=g++" "HOSTCXX=g++"
···25 cd source
26 # Related to issue #1963
27 sed -i 's/-fuse-ld=gold//g' Makefile
28+ for i in util/*.pl; do
29+ patchShebangs $i
30+ done
31+ patchShebangs util/gen-mi-enum
32 '';
3334 makeFlags = [ "prefix=$(out)" "FORCE_CC=gcc" "FORCE_CXX=g++" "HOSTCXX=g++"
···36 # 'chrpath' is used to be able to run the tests from the source tree, but
37 # we use $LD_LIBRARY_PATH instead.
38 buildPhase = ''
039 mkdir -p "$out"
40 sed -e "s|python_lib_dir = .*|python_lib_dir = \"$out/lib/${pythonFull.libPrefix}/site-packages\"|" -i SConstruct
41 scons prefix="$out" leapfetch=no gpsd_user=${gpsdUser} gpsd_group=${gpsdGroup} \
···36 # 'chrpath' is used to be able to run the tests from the source tree, but
37 # we use $LD_LIBRARY_PATH instead.
38 buildPhase = ''
39+ patchShebangs .
40 mkdir -p "$out"
41 sed -e "s|python_lib_dir = .*|python_lib_dir = \"$out/lib/${pythonFull.libPrefix}/site-packages\"|" -i SConstruct
42 scons prefix="$out" leapfetch=no gpsd_user=${gpsdUser} gpsd_group=${gpsdGroup} \