Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Revert "Introduce patchShebangsPhase ran in preConfigurePhases"

This reverts commit 512fbb280f72980e84230b72b631258df1755919.

See #5368

+178 -17
-6
doc/stdenv.xml
··· 854 854 </varlistentry> 855 855 856 856 <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 857 <term><varname>forceShare</varname></term> 864 858 <listitem><para>The list of directories that must be moved from 865 859 <filename>$out</filename> to <filename>$out/share</filename>.
+4
pkgs/applications/audio/caudec/default.nix
··· 12 12 sha256 = "5d1f5ab3286bb748bd29cbf45df2ad2faf5ed86070f90deccf71c60be832f3d5"; 13 13 }; 14 14 15 + preBuild = '' 16 + patchShebangs ./install.sh 17 + ''; 18 + 15 19 buildInputs = [ bash makeWrapper ]; 16 20 17 21 installPhase = ''
+2
pkgs/applications/editors/geany/default.nix
··· 18 18 19 19 enableParallelBuilding = true; 20 20 21 + patchPhase = "patchShebangs ."; 22 + 21 23 # This file should normally require a gtk-update-icon-cache -q /usr/share/icons/hicolor command 22 24 # It have no reasons to exist in a redistribuable package 23 25 postInstall = "rm $out/share/icons/hicolor/icon-theme.cache";
+4
pkgs/applications/graphics/shotwell/default.nix
··· 30 30 31 31 configureFlags = [ "--disable-gsettings-convert-install" ]; 32 32 33 + preConfigure = '' 34 + patchShebangs . 35 + ''; 36 + 33 37 postInstall = '' 34 38 mkdir -p $out/share/gsettings-schemas/$name 35 39 mv $out/share/glib-2.0 $out/share/gsettings-schemas/$name/
+1
pkgs/applications/graphics/xara/default.nix
··· 16 16 17 17 patches = map fetchurl (import ./debian-patches.nix); 18 18 19 + prePatch = "patchShebangs Scripts"; 19 20 }
+1
pkgs/applications/misc/bibletime/default.nix
··· 12 12 }; 13 13 14 14 prePatch = '' 15 + patchShebangs .; 15 16 ''; 16 17 17 18 preConfigure = ''
+1
pkgs/applications/misc/xiphos/default.nix
··· 24 24 libglade scrollkeeper webkitgtk dbus_glib enchant isocodes libuuid ]; 25 25 26 26 prePatch = '' 27 + patchShebangs .; 27 28 ''; 28 29 29 30 preConfigure = ''
+2
pkgs/applications/networking/browsers/chromium/source/default.nix
··· 20 20 21 21 opensslPatches = optional useOpenSSL openssl.patches; 22 22 23 + prePatch = "patchShebangs ."; 24 + 23 25 patches = [ ./sandbox_userns_36.patch ./nix_plugin_paths.patch ]; 24 26 25 27 postPatch = ''
+2
pkgs/applications/networking/cluster/kubernetes/default.nix
··· 13 13 14 14 buildInputs = [ makeWrapper which go iptables rsync ]; 15 15 16 + preBuild = "patchShebangs ./hack"; 17 + 16 18 postBuild = ''go build --ldflags '-extldflags "-static" -s' build/pause/pause.go''; 17 19 18 20 installPhase = ''
+1
pkgs/applications/networking/instant-messengers/freetalk/default.nix
··· 28 28 }; 29 29 30 30 preConfigure = '' 31 + patchShebangs . 31 32 ./autogen.sh 32 33 ''; 33 34
+1
pkgs/applications/networking/instant-messengers/jitsi/default.nix
··· 33 33 cp resources/install/generic/run.sh $out/bin/jitsi 34 34 chmod +x $out/bin/jitsi 35 35 sed -i 's| java | ${jdk}/bin/java |' $out/bin/jitsi 36 + patchShebangs $out 36 37 ''; 37 38 38 39 meta = {
+4
pkgs/applications/networking/instant-messengers/kadu/default.nix
··· 21 21 22 22 cmakeFlags = "-DENABLE_AUTODOWNLOAD=OFF -DBUILD_DESCRIPTION='NixOS' -DCMAKE_BUILD_TYPE=Release"; 23 23 24 + prePatch = '' 25 + patchShebangs . 26 + ''; 27 + 24 28 # Disable the kadu plugins I wasn't able to get to work 25 29 patchPhase = '' 26 30 sed -i -e '/mpd_mediaplayer/d' \
+2
pkgs/applications/networking/mailreaders/thunderbird/default.nix
··· 71 71 ++ stdenv.lib.optional enableOfficialBranding "--enable-official-branding"; 72 72 73 73 configurePhase = '' 74 + patchShebangs . 75 + 74 76 echo '${stdenv.lib.concatMapStrings (s : "ac_add_options ${s}\n") configureFlags}' > .mozconfig 75 77 echo "ac_add_options --prefix='$out'" >> .mozconfig 76 78 echo "mk_add_options MOZ_MAKE_FLAGS='-j$NIX_BUILD_CORES'" >> .mozconfig
+1
pkgs/applications/networking/p2p/gnunet/default.nix
··· 38 38 39 39 # Ensure NSS installation works fine 40 40 configureFlags="$configureFlags --with-nssdir=$out/lib" 41 + patchShebangs src/gns/nss/install-nss-plugin.sh 41 42 ''; 42 43 43 44 doCheck = false;
+1
pkgs/applications/networking/p2p/gnunet/svn.nix
··· 47 47 48 48 # Ensure NSS installation works fine 49 49 configureFlags="$configureFlags --with-nssdir=$out/lib" 50 + patchShebangs src/gns/nss/install-nss-plugin.sh 50 51 51 52 sh contrib/pogen.sh 52 53 sh bootstrap
+2
pkgs/applications/science/logic/cvc4/default.nix
··· 9 9 10 10 buildInputs = [ gmp libantlr3c boost ]; 11 11 12 + preConfigure = "patchShebangs ./src/"; 13 + 12 14 doChecks = true; 13 15 14 16 meta = with stdenv.lib; {
+1
pkgs/applications/science/logic/isabelle/default.nix
··· 27 27 28 28 postPatch = '' 29 29 ENV=$(type -p env) 30 + patchShebangs "." 30 31 substituteInPlace lib/Tools/env \ 31 32 --replace /usr/bin/env $ENV 32 33 substituteInPlace lib/Tools/install \
+6
pkgs/applications/video/cmplayer/default.nix
··· 54 54 ++ optional cddaSupport libcdda 55 55 ; 56 56 57 + preConfigure = '' 58 + patchShebangs ./configure 59 + patchShebangs src/mpv/waf 60 + ''; 57 61 58 62 configureFlags = with stdenv.lib; 59 63 [ "--qmake=qmake" ] ··· 62 66 ++ optional pulseSupport "--enable-pulseaudio" 63 67 ++ optional cddaSupport "--enable-cdda" 64 68 ; 69 + 70 + preBuild = "patchShebangs ./build-mpv"; 65 71 66 72 nativeBuildInputs = [ pkgconfig python2 perl ]; 67 73
+4
pkgs/applications/video/mplayer2/default.nix
··· 103 103 104 104 nativeBuildInputs = [ yasm python3 ]; 105 105 106 + postConfigure = '' 107 + patchShebangs TOOLS 108 + ''; 109 + 106 110 configureFlags = with stdenv.lib; 107 111 '' 108 112 ${optionalString (useUnfreeCodecs && codecs != null) "--codecsdir=${codecs}"}
+1
pkgs/applications/video/mpv/default.nix
··· 97 97 98 98 configurePhase = '' 99 99 python3 ${waf} configure --prefix=$out ${lib.optionalString vaapiSupport "--enable-vaapi"} 100 + patchShebangs TOOLS 100 101 ''; 101 102 102 103 buildPhase = ''
+1
pkgs/applications/virtualization/docker/default.nix
··· 15 15 dontStrip = true; 16 16 17 17 buildPhase = '' 18 + patchShebangs ./hack 18 19 export AUTO_GOPATH=1 19 20 export DOCKER_GITCOMMIT="c78088f" 20 21 ./hack/make.sh dynbinary
+4
pkgs/applications/window-managers/i3/default.nix
··· 18 18 perlPackages.ExtUtilsPkgConfig perlPackages.TestMore perlPackages.InlineC 19 19 ]; 20 20 21 + postPatch = '' 22 + patchShebangs . 23 + ''; 24 + 21 25 doCheck = stdenv.system == "x86_64-linux"; 22 26 23 27 checkPhase = ''
-6
pkgs/build-support/setup-hooks/patch-shebangs.sh
··· 7 7 8 8 fixupOutputHooks+=('if [ -z "$dontPatchShebangs" ]; then patchShebangs "$prefix"; fi') 9 9 10 - preConfigurePhases+=" patchShebangsPhase" 11 - 12 - patchShebangsPhase() { 13 - if [ -z "$dontPatchSourceShebangs" ]; then patchShebangs "."; fi 14 - } 15 - 16 10 patchShebangs() { 17 11 local dir="$1" 18 12 header "patching script interpreter paths in $dir"
+5
pkgs/data/documentation/stdman/default.nix
··· 11 11 sha256 = "09c5gjhcz97ghfrv9zkgfb1wckvmqnhbzga0xidbm1ir7640di8l"; 12 12 }; 13 13 14 + preConfigure = " 15 + patchShebangs ./configure 16 + patchShebangs ./do_install 17 + "; 18 + 14 19 buildInputs = [ curl ]; 15 20 16 21 meta = with stdenv.lib; {
+2
pkgs/desktops/cinnamon/cjs.nix
··· 19 19 gobjectIntrospection 20 20 ]; 21 21 22 + preBuild = "patchShebangs ./scripts"; 23 + 22 24 meta = { 23 25 homepage = "http://cinnamon.linuxmint.com"; 24 26 description = "JavaScript bindings for Cinnamon" ;
+3
pkgs/desktops/cinnamon/muffin.nix
··· 25 25 clutter cogl zenity python 26 26 gnome_doc_utils makeWrapper]; 27 27 28 + preBuild = "patchShebangs ./scripts"; 29 + 30 + 28 31 postFixup = '' 29 32 30 33 for f in "$out/bin/"*; do
+4
pkgs/desktops/gnome-3/3.12/core/caribou/default.nix
··· 16 16 17 17 propagatedBuildInputs = [ gnome3.libgee libxklavier ]; 18 18 19 + preBuild = '' 20 + patchShebangs . 21 + ''; 22 + 19 23 meta = with stdenv.lib; { 20 24 platforms = platforms.linux; 21 25 };
+1
pkgs/desktops/gnome-3/3.12/core/gnome-shell/default.nix
··· 27 27 installFlags = [ "keysdir=$(out)/share/gnome-control-center/keybindings" ]; 28 28 29 29 preBuild = '' 30 + patchShebangs src/data-to-c.pl 30 31 substituteInPlace data/Makefile --replace " install-keysDATA" "" 31 32 ''; 32 33
+2
pkgs/desktops/gnome-3/3.12/core/vte/0.38.0.nix
··· 17 17 18 18 buildInputs = [ gobjectIntrospection intltool pkgconfig gnome3.glib gnome3.gtk3 ncurses vala libxml2 ]; 19 19 20 + preConfigure = "patchShebangs ."; 21 + 20 22 configureFlags = [ "--enable-introspection" ]; 21 23 22 24 enableParallelBuilding = true;
+1
pkgs/development/compilers/go/1.1-darwin.nix
··· 22 22 fi 23 23 cd go 24 24 25 + patchShebangs ./ # replace /bin/bash 25 26 rm src/pkg/net/{multicast_test.go,parse_test.go,port_test.go} 26 27 # The os test wants to read files in an existing path. Just it don't be /usr/bin. 27 28 sed -i 's,/usr/bin,'"`pwd`", src/pkg/os/os_test.go
+1
pkgs/development/compilers/go/1.1.nix
··· 33 33 fi 34 34 cd go 35 35 36 + patchShebangs ./ # replace /bin/bash 36 37 # !!! substituteInPlace does not seems to be effective. 37 38 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c 38 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 32 fi 33 33 cd go 34 34 35 + patchShebangs ./ # replace /bin/bash 35 36 # !!! substituteInPlace does not seems to be effective. 36 37 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c 37 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 30 fi 31 31 cd go 32 32 33 + patchShebangs ./ # replace /bin/bash 33 34 # !!! substituteInPlace does not seems to be effective. 34 35 sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c 35 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
··· 106 106 107 107 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/usr/lib:$PWD/usr/lib/julia" 108 108 109 + patchShebangs . contrib 110 + 109 111 export PATH="$PATH:${stdenv.cc.libc}/sbin" 110 112 111 113 # ldconfig doesn't seem to ever work on NixOS; system-wide ldconfig cache
+1
pkgs/development/compilers/mono/default.nix
··· 35 35 # LLVM path to point into the Mono LLVM build, since it's private anyway. 36 36 preBuild = '' 37 37 makeFlagsArray=(INSTALL=`type -tp install`) 38 + patchShebangs ./ 38 39 '' + stdenv.lib.optionalString withLLVM '' 39 40 substituteInPlace mono/mini/aot-compiler.c --replace "llvm_path = g_strdup (\"\")" "llvm_path = g_strdup (\"${llvm}/bin/\")" 40 41 '';
+1
pkgs/development/compilers/opa/default.nix
··· 19 19 codeGeneratorPaths = "${ocamlPackages.ocaml}/bin:${gcc}/bin:${binutils}/bin:${gnumake}/bin:${nodejs}/bin"; 20 20 21 21 preConfigure = '' 22 + patchShebangs . 22 23 ( 23 24 cat ./compiler/buildinfos/buildInfos.ml.pre 24 25 ./compiler/buildinfos/generate_buildinfos.sh . --release --version ./compiler/buildinfos/version_major.txt
+1
pkgs/development/libraries/agda/agda-iowa-stdlib/default.nix
··· 12 12 13 13 sourceDirectories = [ "./." ]; 14 14 buildPhase = '' 15 + patchShebangs find-deps.sh 15 16 make 16 17 ''; 17 18
+1
pkgs/development/libraries/dbus/default.nix
··· 47 47 buildInputs = [ autoconf automake libtool ]; # ToDo: optional selinux? 48 48 49 49 preConfigure = '' 50 + patchShebangs . 50 51 substituteInPlace tools/Makefile.am --replace 'install-localstatelibDATA:' 'disabled:' 51 52 autoreconf -fi 52 53 '';
+3
pkgs/development/libraries/folly/default.nix
··· 17 17 nativeBuildInputs = [ autoreconfHook python boost ]; 18 18 19 19 postUnpack = "sourceRoot=\${sourceRoot}/folly"; 20 + preBuild = '' 21 + patchShebangs build 22 + ''; 20 23 21 24 configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ]; 22 25
+1
pkgs/development/libraries/hspell/default.nix
··· 13 13 sha256 = "08x7rigq5pa1pfpl30qp353hbdkpadr1zc49slpczhsn0sg36pd6"; 14 14 }; 15 15 16 + patchPhase = ''patchShebangs .''; 16 17 buildInputs = [ perl zlib ]; 17 18 18 19 makeFlags = "CFLAGS=-fPIC";
+1
pkgs/development/libraries/ibus/default.nix
··· 20 20 ]; 21 21 22 22 preBuild = '' 23 + patchShebangs ./scripts 23 24 substituteInPlace data/dconf/Makefile --replace "dconf update" "echo" 24 25 ''; 25 26
+2 -1
pkgs/development/libraries/libcouchbase/default.nix
··· 11 11 }; 12 12 13 13 preConfigure = '' 14 + patchShebangs ./config/ 14 15 ./config/autorun.sh 15 16 ''; 16 17 ··· 24 25 license = stdenv.lib.licenses.asl20; 25 26 platforms = stdenv.lib.platforms.unix; 26 27 }; 27 - } 28 + }
+4
pkgs/development/libraries/libctemplate/default.nix
··· 12 12 13 13 buildInputs = [ python ]; 14 14 15 + postPatch = '' 16 + patchShebangs . 17 + ''; 18 + 15 19 meta = { 16 20 description = "A simple but powerful template language for C++"; 17 21 longDescription = ''
+4
pkgs/development/libraries/libqmi/default.nix
··· 8 8 sha256 = "03gf221yjcdzvnl4v2adwpc6cyg5mlbccn20s00fp5bgvmq81pgs"; 9 9 }; 10 10 11 + preBuild = '' 12 + patchShebangs . 13 + ''; 14 + 11 15 buildInputs = [ pkgconfig glib python ]; 12 16 13 17 meta = with stdenv.lib; {
+4
pkgs/development/libraries/libsoup/default.nix
··· 14 14 sha256 = "ea34dd64fe44343445daf6dd690d0691e9d973468de44878da97371c16d89784"; 15 15 }; 16 16 17 + patchPhase = '' 18 + patchShebangs libsoup/ 19 + ''; 20 + 17 21 buildInputs = libintlOrEmpty ++ [ intltool python ]; 18 22 nativeBuildInputs = [ pkgconfig ]; 19 23 propagatedBuildInputs = [ glib libxml2 gobjectIntrospection ]
+1
pkgs/development/libraries/libvirt/default.nix
··· 25 25 26 26 preConfigure = '' 27 27 PATH=${iproute}/sbin:${iptables}/sbin:${ebtables}/sbin:${lvm2}/sbin:${udev}/sbin:${dnsmasq}/bin:$PATH 28 + patchShebangs . # fixes /usr/bin/python references 28 29 ''; 29 30 30 31 configureFlags = [
+2
pkgs/development/libraries/lirc/default.nix
··· 15 15 }) 16 16 ]; 17 17 18 + preBuild = "patchShebangs ."; 19 + 18 20 buildInputs = [ alsaLib help2man ]; 19 21 20 22 configureFlags = [
+2
pkgs/development/libraries/mesa-darwin/default.nix
··· 41 41 ./patches/patch-src-mapi-vgapi-Makefile.diff 42 42 ]; 43 43 44 + postPatch = "patchShebangs ."; 45 + 44 46 configurePhase = ":"; 45 47 46 48 makeFlags = "INSTALL_DIR=\${out} CC=cc CXX=c++";
+1
pkgs/development/libraries/mesa/default.nix
··· 38 38 sha256 = "f6031f8b7113a92325b60635c504c510490eebb2e707119bbff7bd86aa34657d"; 39 39 }; 40 40 41 + prePatch = "patchShebangs ."; 41 42 42 43 patches = [ 43 44 ./static-gallium.patch
+3 -1
pkgs/development/libraries/polkit/default.nix
··· 35 35 ( map (var: ''-DPACKAGE_${var}_DIR=\""${builtins.getAttr var foolVars}"\"'') 36 36 (builtins.attrNames foolVars) ); 37 37 38 - preConfigure = stdenv.lib.optionalString useSystemd /* bogus chroot detection */ '' 38 + preConfigure = '' 39 + patchShebangs . 40 + '' + stdenv.lib.optionalString useSystemd /* bogus chroot detection */ '' 39 41 sed '/libsystemd-login autoconfigured, but system does not appear to use systemd/s/.*/:/' -i configure 40 42 '' 41 43 # ‘libpolkit-agent-1.so’ should call the setuid wrapper on
+2
pkgs/development/libraries/qpdf/default.nix
··· 15 15 buildInputs = [ pcre zlib ]; 16 16 17 17 postPatch = '' 18 + patchShebangs qpdf/fix-qdf 18 19 ''; 19 20 20 21 preCheck = '' 22 + patchShebangs qtest/bin/qtest-driver 21 23 ''; 22 24 23 25 doCheck = true;
+4
pkgs/development/libraries/sword/default.nix
··· 13 13 14 14 buildInputs = [ pkgconfig icu clucene_core curl ]; 15 15 16 + prePatch = '' 17 + patchShebangs .; 18 + ''; 19 + 16 20 configureFlags = "--without-conf --enable-tests=no CXXFLAGS=-Wno-unused-but-set-variable"; 17 21 18 22 meta = with stdenv.lib; {
+4
pkgs/development/libraries/webkitgtk/2.4.6.nix
··· 28 28 29 29 CC = "cc"; 30 30 31 + prePatch = '' 32 + patchShebangs Tools/gtk 33 + ''; 34 + 31 35 configureFlags = with stdenv.lib; [ 32 36 "--disable-geolocation" 33 37 (optionalString enableIntrospection "--enable-introspection")
+2
pkgs/development/libraries/webkitgtk/default.nix
··· 17 17 maintainers = with maintainers; [ iyzsong koral ]; 18 18 }; 19 19 20 + preConfigure = "patchShebangs Tools"; 21 + 20 22 src = fetchurl { 21 23 url = "http://webkitgtk.org/releases/${name}.tar.xz"; 22 24 sha256 = "1f9qm5g1mbjm2hrnlzymas99piws4h4y3yxz4p6f6gavnsvfjwji";
+2
pkgs/development/libraries/zeitgeist/default.nix
··· 21 21 libtool python dbus_libs telepathy_glib vala dbus_glib 22 22 gtk3 json_glib librdf_raptor2 pythonPackages.rdflib ]; 23 23 24 + prePatch = "patchShebangs ."; 25 + 24 26 patches = [ ./dbus_glib.patch ]; 25 27 26 28 patchFlags = [ "-p0" ];
+2
pkgs/development/ocaml-modules/javalib/default.nix
··· 20 20 21 21 createFindlibDestdir = true; 22 22 23 + preConfigure = "patchShebangs ./configure.sh"; 24 + 23 25 configureScript = "./configure.sh"; 24 26 dontAddPrefix = "true"; 25 27
+2
pkgs/development/ocaml-modules/sawja/default.nix
··· 22 22 23 23 createFindlibDestdir = true; 24 24 25 + preConfigure = "patchShebangs ./configure.sh"; 26 + 25 27 configureScript = "./configure.sh"; 26 28 dontAddPrefix = "true"; 27 29
+2
pkgs/development/python-modules/dbus/default.nix
··· 8 8 sha256 = "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71"; 9 9 }; 10 10 11 + postPatch = "patchShebangs ."; 12 + 11 13 buildInputs = [ python pkgconfig dbus dbus_glib ] 12 14 ++ stdenv.lib.optional doCheck dbus_tools; 13 15
+8
pkgs/development/r-modules/default.nix
··· 916 916 ]; 917 917 918 918 otherOverrides = old: new: { 919 + RcppArmadillo = old.RcppArmadillo.overrideDerivation (attrs: { 920 + patchPhase = "patchShebangs configure"; 921 + }); 922 + 923 + rpf = old.rpf.overrideDerivation (attrs: { 924 + patchPhase = "patchShebangs configure"; 925 + }); 926 + 919 927 BayesXsrc = old.BayesXsrc.overrideDerivation (attrs: { 920 928 patches = [ ./patches/BayesXsrc.patch ]; 921 929 });
+2 -1
pkgs/development/tools/build-managers/icmake/default.nix
··· 10 10 }; 11 11 12 12 preConfigure = '' 13 + patchShebangs ./ 13 14 sed -i "s;usr/;;g" INSTALL.im 14 15 ''; 15 16 ··· 24 25 maintainers = with maintainers; [ pSub ]; 25 26 platforms = platforms.linux; 26 27 }; 27 - } 28 + }
+3 -1
pkgs/development/tools/documentation/doxygen/default.nix
··· 24 24 ++ stdenv.lib.optional (qt4 != null) "--with-doxywizard"; 25 25 26 26 preConfigure = 27 - stdenv.lib.optionalString (qt4 != null) 27 + '' 28 + patchShebangs . 29 + '' + stdenv.lib.optionalString (qt4 != null) 28 30 '' 29 31 echo "using QTDIR=${qt4}..." 30 32 export QTDIR=${qt4}
+1
pkgs/development/tools/misc/yodl/default.nix
··· 12 12 }; 13 13 14 14 preConfigure = '' 15 + patchShebangs scripts/. 15 16 sed -i 's;/usr;;g' INSTALL.im 16 17 substituteInPlace build --replace /usr/bin/icmake ${icmake}/bin/icmake 17 18 substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl
+4
pkgs/games/crawl/default.nix
··· 25 25 cd source 26 26 # Related to issue #1963 27 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 28 32 ''; 29 33 30 34 makeFlags = [ "prefix=$(out)" "FORCE_CC=gcc" "FORCE_CXX=g++" "HOSTCXX=g++"
+2
pkgs/misc/vim-plugins/default.nix
··· 527 527 configurePhase = ":"; 528 528 529 529 buildPhase = '' 530 + patchShebangs . 531 + 530 532 target=$out/${rtpPath}/youcompleteme 531 533 mkdir -p $target 532 534 cp -a ./ $target
+1
pkgs/os-specific/darwin/cctools-port/default.nix
··· 22 22 enableParallelBuilding = true; 23 23 24 24 postPatch = '' 25 + patchShebangs tools 25 26 sed -i -e 's/which/type -P/' tools/*.sh 26 27 sed -i -e 's|clang++|& -I${libcxx}/include/c++/v1|' cctools/autogen.sh 27 28
+2
pkgs/os-specific/linux/hwdata/default.nix
··· 8 8 sha256 = "1ak3h3psg3wk9yk0dqnzdzik3jadzja3ah22vjfmf71p3b5xc8ai"; 9 9 }; 10 10 11 + preConfigure = "patchShebangs ./configure"; 12 + 11 13 configureFlags = "--datadir=$(prefix)/data"; 12 14 13 15 meta = {
+2
pkgs/os-specific/linux/x86info/default.nix
··· 10 10 }; 11 11 12 12 preConfigure = '' 13 + patchShebangs . 14 + 13 15 # ignore warnings 14 16 sed -i 's/-Werror -Wall//' Makefile 15 17 '';
+5
pkgs/servers/amqp/rabbitmq-server/default.nix
··· 14 14 buildInputs = 15 15 [ erlang python libxml2 libxslt xmlto docbook_xml_dtd_45 docbook_xsl zip unzip ]; 16 16 17 + preBuild = 18 + '' 19 + # Fix the "/usr/bin/env" in "calculate-relative". 20 + patchShebangs . 21 + ''; 17 22 18 23 installFlags = "TARGET_DIR=$(out)/libexec/rabbitmq SBIN_DIR=$(out)/sbin MAN_DIR=$(out)/share/man DOC_INSTALL_DIR=$(out)/share/doc"; 19 24
+1
pkgs/servers/fleet/default.nix
··· 14 14 buildInputs = [ go ]; 15 15 16 16 buildPhase = '' 17 + patchShebangs build 17 18 ./build 18 19 ''; 19 20
+1
pkgs/servers/gpsd/default.nix
··· 36 36 # 'chrpath' is used to be able to run the tests from the source tree, but 37 37 # we use $LD_LIBRARY_PATH instead. 38 38 buildPhase = '' 39 + patchShebangs . 39 40 mkdir -p "$out" 40 41 sed -e "s|python_lib_dir = .*|python_lib_dir = \"$out/lib/${pythonFull.libPrefix}/site-packages\"|" -i SConstruct 41 42 scons prefix="$out" leapfetch=no gpsd_user=${gpsdUser} gpsd_group=${gpsdGroup} \
+1
pkgs/servers/http/openresty/default.nix
··· 52 52 preConfigure = '' 53 53 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2 $additionalFlags" 54 54 export PATH="$PATH:${stdenv.cc.libc}/sbin" 55 + patchShebangs . 55 56 ''; 56 57 57 58 meta = {
+1
pkgs/servers/nosql/rethinkdb/default.nix
··· 10 10 11 11 preConfigure = '' 12 12 export ALLOW_WARNINGS=1 13 + patchShebangs . 13 14 ''; 14 15 15 16 configureFlags = "--lib-path ${gperftools}/lib";
+1
pkgs/servers/nosql/riak/1.3.1.nix
··· 32 32 cp -R getopt riaknostic/deps 33 33 cp -R meck riaknostic/deps 34 34 popd 35 + patchShebangs . 35 36 ''; 36 37 37 38 buildPhase = ''
+1
pkgs/servers/openafs-client/default.nix
··· 24 24 preConfigure = '' 25 25 ln -s ${kernel.dev}/lib/modules/*/build $TMP/linux 26 26 27 + patchShebangs . 27 28 for i in `grep -l -R '/usr/\(include\|src\)' .`; do 28 29 echo "Patch /usr/include and /usr/src in $i" 29 30 substituteInPlace $i \
+1
pkgs/tools/backup/bup/default.nix
··· 19 19 nativeBuildInputs = [ pandoc perl makeWrapper ]; 20 20 21 21 patchPhase = '' 22 + patchShebangs . 22 23 substituteInPlace Makefile --replace "-Werror" "" 23 24 substituteInPlace Makefile --replace "./format-subst.pl" "perl ./format-subst.pl" 24 25 '' + optionalString par2Support ''
+4
pkgs/tools/cd-dvd/dvdisaster/default.nix
··· 10 10 sha256 = "e9787dea39aeafa38b26604752561bc895083c17b588489d857ac05c58be196b"; 11 11 }; 12 12 13 + postPatch = '' 14 + patchShebangs ./ 15 + ''; 16 + 13 17 buildInputs = [ 14 18 pkgconfig which gettext intltool 15 19 glib gtk2
+1
pkgs/tools/filesystems/nixpart/0.4/pyparted.nix
··· 29 29 propagatedBuildInputs = [ parted ]; 30 30 31 31 checkPhase = '' 32 + patchShebangs Makefile 32 33 make test PYTHON=${python.executable} 33 34 ''; 34 35
+2 -1
pkgs/tools/misc/convmv/default.nix
··· 12 12 makeFlags="PREFIX=$out" 13 13 ''; 14 14 15 - postBuild='' 15 + patchPhase='' 16 16 tar -xf testsuite.tar 17 + patchShebangs . 17 18 ''; 18 19 19 20 doCheck = true;
+1
pkgs/tools/misc/opentsdb/default.nix
··· 16 16 mkdir build 17 17 cd build 18 18 ../configure --prefix=$out 19 + patchShebangs ../build-aux/ 19 20 ''; 20 21 21 22 installPhase = ''
+1
pkgs/tools/misc/parted/default.nix
··· 12 12 patches = stdenv.lib.optional doCheck ./gpt-unicode-test-fix.patch; 13 13 14 14 postPatch = stdenv.lib.optionalString doCheck '' 15 + patchShebangs tests 15 16 ''; 16 17 17 18 buildInputs = [ libuuid ]
+1
pkgs/tools/misc/pipelight/default.nix
··· 32 32 ]; 33 33 postPatch = '' 34 34 export wineDir=$(pwd) 35 + patchShebangs $wineDir/tools/ 35 36 chmod u+w $wineDir/../git-export/debian/tools/ 36 37 patchShebangs $wineDir/../git-export/debian/tools/ 37 38 chmod -R +rwx ../git-export/
+1
pkgs/tools/security/mbox/default.nix
··· 21 21 checkPhase = '' 22 22 rm tests/test-*vim.sh tests/test-pip.sh 23 23 24 + patchShebangs ./; dontPatchShebags=1 24 25 sed -i 's|^/bin/||' tests/test-fileops.sh 25 26 26 27 ./testall.sh
+1
pkgs/tools/typesetting/tex/latex2html/default.nix
··· 11 11 buildInputs = [ tex perl ghostscript netpbm ]; 12 12 13 13 preConfigure = '' 14 + patchShebangs . 14 15 sed -i -e "s|#! /bin/cat|#! $(type -p cat)|" configure 15 16 configureFlags="--with-texpath=$out/share/texmf-nix"; 16 17 '';
+2
pkgs/tools/virtualization/cloud-init/default.nix
··· 12 12 }; 13 13 14 14 preBuild = '' 15 + patchShebangs ./tools 16 + 15 17 substituteInPlace setup.py \ 16 18 --replace /usr $out \ 17 19 --replace /etc $out/etc \
+1
pkgs/top-level/perl-packages.nix
··· 1357 1357 url = mirror://cpan/authors/id/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-2.21.tar.gz; 1358 1358 sha256 = "0gca1cjy2k0mrpfnbyzm5islzfayqfvg3zzlrlm7n60p0cb48y7w"; 1359 1359 }; 1360 + preConfigure = "patchShebangs ."; 1360 1361 meta = { 1361 1362 description = "A module for creating generic methods"; 1362 1363 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
+5
pkgs/top-level/python-packages.nix
··· 7213 7213 sha256 = "1mrh233pj584gf7la64d4xlmvdnfl4jwpxs95lnd3i4zd5drid14"; 7214 7214 }; 7215 7215 7216 + preConfigure = '' 7217 + patchShebangs . 7218 + ''; 7219 + 7216 7220 buildInputs = [ 7217 7221 self.setuptools self.nose pkgs.pkgconfig pkgs.swig pkgs.libcdio 7218 7222 ]; ··· 7581 7585 propagatedBuildInputs = with self; [ pkgs.parted ]; 7582 7586 7583 7587 checkPhase = '' 7588 + patchShebangs Makefile 7584 7589 make test PYTHON=${python.executable} 7585 7590 ''; 7586 7591