Merge pull request #5525 from iElectric/staging.patchShebangs

Introduce patchShebangsPhase in preConfigurePhases
This commit is contained in:
Domen Kožar 2015-01-02 13:50:07 +01:00
commit c33716f5f6
86 changed files with 17 additions and 178 deletions

View file

@ -853,6 +853,12 @@ following:
rewritten to paths in the Nix store.</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>dontPatchSourceShebangs</varname></term>
<listitem><para>Same as <varname>dontPatchShebangs</varname>, but applied
to the source code before configurePhase.</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>forceShare</varname></term>
<listitem><para>The list of directories that must be moved from

View file

@ -12,10 +12,6 @@ stdenv.mkDerivation rec {
sha256 = "5d1f5ab3286bb748bd29cbf45df2ad2faf5ed86070f90deccf71c60be832f3d5";
};
preBuild = ''
patchShebangs ./install.sh
'';
buildInputs = [ bash makeWrapper ];
installPhase = ''

View file

@ -18,8 +18,6 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
patchPhase = "patchShebangs .";
# This file should normally require a gtk-update-icon-cache -q /usr/share/icons/hicolor command
# It have no reasons to exist in a redistribuable package
postInstall = "rm $out/share/icons/hicolor/icon-theme.cache";

View file

@ -30,10 +30,6 @@ in stdenv.mkDerivation rec {
configureFlags = [ "--disable-gsettings-convert-install" ];
preConfigure = ''
patchShebangs .
'';
postInstall = ''
mkdir -p $out/share/gsettings-schemas/$name
mv $out/share/glib-2.0 $out/share/gsettings-schemas/$name/

View file

@ -16,5 +16,4 @@ stdenv.mkDerivation {
patches = map fetchurl (import ./debian-patches.nix);
prePatch = "patchShebangs Scripts";
}

View file

@ -12,7 +12,6 @@ stdenv.mkDerivation rec {
};
prePatch = ''
patchShebangs .;
'';
preConfigure = ''

View file

@ -24,7 +24,6 @@ stdenv.mkDerivation rec {
libglade scrollkeeper webkitgtk dbus_glib enchant isocodes libuuid ];
prePatch = ''
patchShebangs .;
'';
preConfigure = ''

View file

@ -20,8 +20,6 @@ stdenv.mkDerivation {
opensslPatches = optional useOpenSSL openssl.patches;
prePatch = "patchShebangs .";
patches = [ ./sandbox_userns_36.patch ./nix_plugin_paths.patch ];
postPatch = ''

View file

@ -13,8 +13,6 @@ stdenv.mkDerivation rec {
buildInputs = [ makeWrapper which go iptables rsync ];
preBuild = "patchShebangs ./hack";
postBuild = ''go build --ldflags '-extldflags "-static" -s' build/pause/pause.go'';
installPhase = ''

View file

@ -28,7 +28,6 @@ stdenv.mkDerivation {
};
preConfigure = ''
patchShebangs .
./autogen.sh
'';

View file

@ -33,7 +33,6 @@ stdenv.mkDerivation rec {
cp resources/install/generic/run.sh $out/bin/jitsi
chmod +x $out/bin/jitsi
sed -i 's| java | ${jdk}/bin/java |' $out/bin/jitsi
patchShebangs $out
'';
meta = {

View file

@ -21,10 +21,6 @@ stdenv.mkDerivation {
cmakeFlags = "-DENABLE_AUTODOWNLOAD=OFF -DBUILD_DESCRIPTION='NixOS' -DCMAKE_BUILD_TYPE=Release";
prePatch = ''
patchShebangs .
'';
# Disable the kadu plugins I wasn't able to get to work
patchPhase = ''
sed -i -e '/mpd_mediaplayer/d' \

View file

@ -71,8 +71,6 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optional enableOfficialBranding "--enable-official-branding";
configurePhase = ''
patchShebangs .
echo '${stdenv.lib.concatMapStrings (s : "ac_add_options ${s}\n") configureFlags}' > .mozconfig
echo "ac_add_options --prefix='$out'" >> .mozconfig
echo "mk_add_options MOZ_MAKE_FLAGS='-j$NIX_BUILD_CORES'" >> .mozconfig

View file

@ -38,7 +38,6 @@ stdenv.mkDerivation rec {
# Ensure NSS installation works fine
configureFlags="$configureFlags --with-nssdir=$out/lib"
patchShebangs src/gns/nss/install-nss-plugin.sh
'';
doCheck = false;

View file

@ -47,7 +47,6 @@ stdenv.mkDerivation rec {
# Ensure NSS installation works fine
configureFlags="$configureFlags --with-nssdir=$out/lib"
patchShebangs src/gns/nss/install-nss-plugin.sh
sh contrib/pogen.sh
sh bootstrap

View file

@ -9,8 +9,6 @@ stdenv.mkDerivation {
buildInputs = [ gmp libantlr3c boost ];
preConfigure = "patchShebangs ./src/";
doChecks = true;
meta = with stdenv.lib; {

View file

@ -27,7 +27,6 @@ stdenv.mkDerivation {
postPatch = ''
ENV=$(type -p env)
patchShebangs "."
substituteInPlace lib/Tools/env \
--replace /usr/bin/env $ENV
substituteInPlace lib/Tools/install \

View file

@ -54,10 +54,6 @@ stdenv.mkDerivation rec {
++ optional cddaSupport libcdda
;
preConfigure = ''
patchShebangs ./configure
patchShebangs src/mpv/waf
'';
configureFlags = with stdenv.lib;
[ "--qmake=qmake" ]
@ -67,8 +63,6 @@ stdenv.mkDerivation rec {
++ optional cddaSupport "--enable-cdda"
;
preBuild = "patchShebangs ./build-mpv";
nativeBuildInputs = [ pkgconfig python2 perl ];
enableParallelBuilding = true;

View file

@ -103,10 +103,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ yasm python3 ];
postConfigure = ''
patchShebangs TOOLS
'';
configureFlags = with stdenv.lib;
''
${optionalString (useUnfreeCodecs && codecs != null) "--codecsdir=${codecs}"}

View file

@ -97,7 +97,6 @@ stdenv.mkDerivation rec {
configurePhase = ''
python3 ${waf} configure --prefix=$out ${lib.optionalString vaapiSupport "--enable-vaapi"}
patchShebangs TOOLS
'';
buildPhase = ''

View file

@ -15,7 +15,6 @@ stdenv.mkDerivation rec {
dontStrip = true;
buildPhase = ''
patchShebangs ./hack
export AUTO_GOPATH=1
export DOCKER_GITCOMMIT="c78088f"
./hack/make.sh dynbinary

View file

@ -18,10 +18,6 @@ stdenv.mkDerivation rec {
perlPackages.ExtUtilsPkgConfig perlPackages.TestMore perlPackages.InlineC
];
postPatch = ''
patchShebangs .
'';
doCheck = stdenv.system == "x86_64-linux";
checkPhase = ''

View file

@ -7,6 +7,12 @@
fixupOutputHooks+=('if [ -z "$dontPatchShebangs" ]; then patchShebangs "$prefix"; fi')
preConfigurePhases+=" patchShebangsPhase"
patchShebangsPhase() {
if [ -z "$dontPatchSourceShebangs" ]; then patchShebangs "."; fi
}
patchShebangs() {
local dir="$1"
header "patching script interpreter paths in $dir"

View file

@ -11,11 +11,6 @@ stdenv.mkDerivation rec {
sha256 = "09c5gjhcz97ghfrv9zkgfb1wckvmqnhbzga0xidbm1ir7640di8l";
};
preConfigure = "
patchShebangs ./configure
patchShebangs ./do_install
";
buildInputs = [ curl ];
meta = with stdenv.lib; {

View file

@ -19,8 +19,6 @@ stdenv.mkDerivation rec {
gobjectIntrospection
];
preBuild = "patchShebangs ./scripts";
meta = {
homepage = "http://cinnamon.linuxmint.com";
description = "JavaScript bindings for Cinnamon" ;

View file

@ -25,9 +25,6 @@ stdenv.mkDerivation {
clutter cogl zenity python
gnome_doc_utils makeWrapper];
preBuild = "patchShebangs ./scripts";
postFixup = ''
for f in "$out/bin/"*; do

View file

@ -16,10 +16,6 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ gnome3.libgee libxklavier ];
preBuild = ''
patchShebangs .
'';
meta = with stdenv.lib; {
platforms = platforms.linux;
};

View file

@ -27,7 +27,6 @@ stdenv.mkDerivation rec {
installFlags = [ "keysdir=$(out)/share/gnome-control-center/keybindings" ];
preBuild = ''
patchShebangs src/data-to-c.pl
substituteInPlace data/Makefile --replace " install-keysDATA" ""
'';

View file

@ -17,8 +17,6 @@ stdenv.mkDerivation rec {
buildInputs = [ gobjectIntrospection intltool pkgconfig gnome3.glib gnome3.gtk3 ncurses vala libxml2 ];
preConfigure = "patchShebangs .";
configureFlags = [ "--enable-introspection" ];
enableParallelBuilding = true;

View file

@ -22,7 +22,6 @@ stdenv.mkDerivation {
fi
cd go
patchShebangs ./ # replace /bin/bash
rm src/pkg/net/{multicast_test.go,parse_test.go,port_test.go}
# The os test wants to read files in an existing path. Just it don't be /usr/bin.
sed -i 's,/usr/bin,'"`pwd`", src/pkg/os/os_test.go

View file

@ -33,7 +33,6 @@ stdenv.mkDerivation {
fi
cd go
patchShebangs ./ # replace /bin/bash
# !!! substituteInPlace does not seems to be effective.
sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
sed -i 's,/lib64/ld-linux-x86-64.so.2,${loaderAmd64},' src/cmd/6l/asm.c

View file

@ -32,7 +32,6 @@ stdenv.mkDerivation {
fi
cd go
patchShebangs ./ # replace /bin/bash
# !!! substituteInPlace does not seems to be effective.
sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
sed -i 's,/lib64/ld-linux-x86-64.so.2,${loaderAmd64},' src/cmd/6l/asm.c

View file

@ -30,7 +30,6 @@ stdenv.mkDerivation {
fi
cd go
patchShebangs ./ # replace /bin/bash
# !!! substituteInPlace does not seems to be effective.
sed -i 's,/lib/ld-linux.so.2,${loader386},' src/cmd/8l/asm.c
sed -i 's,/lib64/ld-linux-x86-64.so.2,${loaderAmd64},' src/cmd/6l/asm.c

View file

@ -106,8 +106,6 @@ stdenv.mkDerivation rec {
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/usr/lib:$PWD/usr/lib/julia"
patchShebangs . contrib
export PATH="$PATH:${stdenv.cc.libc}/sbin"
# ldconfig doesn't seem to ever work on NixOS; system-wide ldconfig cache

View file

@ -35,7 +35,6 @@ stdenv.mkDerivation rec {
# LLVM path to point into the Mono LLVM build, since it's private anyway.
preBuild = ''
makeFlagsArray=(INSTALL=`type -tp install`)
patchShebangs ./
'' + stdenv.lib.optionalString withLLVM ''
substituteInPlace mono/mini/aot-compiler.c --replace "llvm_path = g_strdup (\"\")" "llvm_path = g_strdup (\"${llvm}/bin/\")"
'';

View file

@ -19,7 +19,6 @@ stdenv.mkDerivation rec {
codeGeneratorPaths = "${ocamlPackages.ocaml}/bin:${gcc}/bin:${binutils}/bin:${gnumake}/bin:${nodejs}/bin";
preConfigure = ''
patchShebangs .
(
cat ./compiler/buildinfos/buildInfos.ml.pre
./compiler/buildinfos/generate_buildinfos.sh . --release --version ./compiler/buildinfos/version_major.txt

View file

@ -12,7 +12,6 @@ agda.mkDerivation (self: rec {
sourceDirectories = [ "./." ];
buildPhase = ''
patchShebangs find-deps.sh
make
'';

View file

@ -47,7 +47,6 @@ let
buildInputs = [ autoconf automake libtool ]; # ToDo: optional selinux?
preConfigure = ''
patchShebangs .
substituteInPlace tools/Makefile.am --replace 'install-localstatelibDATA:' 'disabled:'
autoreconf -fi
'';

View file

@ -17,9 +17,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook python boost ];
postUnpack = "sourceRoot=\${sourceRoot}/folly";
preBuild = ''
patchShebangs build
'';
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ];

View file

@ -13,7 +13,6 @@ stdenv.mkDerivation rec {
sha256 = "08x7rigq5pa1pfpl30qp353hbdkpadr1zc49slpczhsn0sg36pd6";
};
patchPhase = ''patchShebangs .'';
buildInputs = [ perl zlib ];
makeFlags = "CFLAGS=-fPIC";

View file

@ -20,7 +20,6 @@ stdenv.mkDerivation rec {
];
preBuild = ''
patchShebangs ./scripts
substituteInPlace data/dconf/Makefile --replace "dconf update" "echo"
'';

View file

@ -11,7 +11,6 @@ stdenv.mkDerivation {
};
preConfigure = ''
patchShebangs ./config/
./config/autorun.sh
'';

View file

@ -12,10 +12,6 @@ stdenv.mkDerivation rec {
buildInputs = [ python ];
postPatch = ''
patchShebangs .
'';
meta = {
description = "A simple but powerful template language for C++";
longDescription = ''

View file

@ -8,10 +8,6 @@ stdenv.mkDerivation rec {
sha256 = "03gf221yjcdzvnl4v2adwpc6cyg5mlbccn20s00fp5bgvmq81pgs";
};
preBuild = ''
patchShebangs .
'';
buildInputs = [ pkgconfig glib python ];
meta = with stdenv.lib; {

View file

@ -14,10 +14,6 @@ stdenv.mkDerivation {
sha256 = "ea34dd64fe44343445daf6dd690d0691e9d973468de44878da97371c16d89784";
};
patchPhase = ''
patchShebangs libsoup/
'';
buildInputs = libintlOrEmpty ++ [ intltool python ];
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ glib libxml2 gobjectIntrospection ]

View file

@ -25,7 +25,6 @@ stdenv.mkDerivation rec {
preConfigure = ''
PATH=${iproute}/sbin:${iptables}/sbin:${ebtables}/sbin:${lvm2}/sbin:${udev}/sbin:${dnsmasq}/bin:$PATH
patchShebangs . # fixes /usr/bin/python references
'';
configureFlags = [

View file

@ -15,8 +15,6 @@ stdenv.mkDerivation rec {
})
];
preBuild = "patchShebangs .";
buildInputs = [ alsaLib help2man ];
configureFlags = [

View file

@ -41,8 +41,6 @@ let
./patches/patch-src-mapi-vgapi-Makefile.diff
];
postPatch = "patchShebangs .";
configurePhase = ":";
makeFlags = "INSTALL_DIR=\${out} CC=cc CXX=c++";

View file

@ -38,7 +38,6 @@ stdenv.mkDerivation {
sha256 = "f6031f8b7113a92325b60635c504c510490eebb2e707119bbff7bd86aa34657d";
};
prePatch = "patchShebangs .";
patches = [
./static-gallium.patch

View file

@ -35,9 +35,7 @@ stdenv.mkDerivation rec {
( map (var: ''-DPACKAGE_${var}_DIR=\""${builtins.getAttr var foolVars}"\"'')
(builtins.attrNames foolVars) );
preConfigure = ''
patchShebangs .
'' + stdenv.lib.optionalString useSystemd /* bogus chroot detection */ ''
preConfigure = stdenv.lib.optionalString useSystemd /* bogus chroot detection */ ''
sed '/libsystemd-login autoconfigured, but system does not appear to use systemd/s/.*/:/' -i configure
''
# libpolkit-agent-1.so should call the setuid wrapper on

View file

@ -15,11 +15,9 @@ stdenv.mkDerivation rec {
buildInputs = [ pcre zlib ];
postPatch = ''
patchShebangs qpdf/fix-qdf
'';
preCheck = ''
patchShebangs qtest/bin/qtest-driver
'';
doCheck = true;

View file

@ -13,10 +13,6 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig icu clucene_core curl ];
prePatch = ''
patchShebangs .;
'';
configureFlags = "--without-conf --enable-tests=no CXXFLAGS=-Wno-unused-but-set-variable";
meta = with stdenv.lib; {

View file

@ -28,10 +28,6 @@ stdenv.mkDerivation rec {
CC = "cc";
prePatch = ''
patchShebangs Tools/gtk
'';
configureFlags = with stdenv.lib; [
"--disable-geolocation"
(optionalString enableIntrospection "--enable-introspection")

View file

@ -17,8 +17,6 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ iyzsong koral ];
};
preConfigure = "patchShebangs Tools";
src = fetchurl {
url = "http://webkitgtk.org/releases/${name}.tar.xz";
sha256 = "1f9qm5g1mbjm2hrnlzymas99piws4h4y3yxz4p6f6gavnsvfjwji";

View file

@ -21,8 +21,6 @@ stdenv.mkDerivation rec {
libtool python dbus_libs telepathy_glib vala dbus_glib
gtk3 json_glib librdf_raptor2 pythonPackages.rdflib ];
prePatch = "patchShebangs .";
patches = [ ./dbus_glib.patch ];
patchFlags = [ "-p0" ];

View file

@ -20,8 +20,6 @@ stdenv.mkDerivation rec {
createFindlibDestdir = true;
preConfigure = "patchShebangs ./configure.sh";
configureScript = "./configure.sh";
dontAddPrefix = "true";

View file

@ -22,8 +22,6 @@ stdenv.mkDerivation rec {
createFindlibDestdir = true;
preConfigure = "patchShebangs ./configure.sh";
configureScript = "./configure.sh";
dontAddPrefix = "true";

View file

@ -8,8 +8,6 @@ if isPyPy then throw "dbus-python not supported for interpreter ${python.executa
sha256 = "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71";
};
postPatch = "patchShebangs .";
buildInputs = [ python pkgconfig dbus dbus_glib ]
++ stdenv.lib.optional doCheck dbus_tools;

View file

@ -916,14 +916,6 @@ let
];
otherOverrides = old: new: {
RcppArmadillo = old.RcppArmadillo.overrideDerivation (attrs: {
patchPhase = "patchShebangs configure";
});
rpf = old.rpf.overrideDerivation (attrs: {
patchPhase = "patchShebangs configure";
});
BayesXsrc = old.BayesXsrc.overrideDerivation (attrs: {
patches = [ ./patches/BayesXsrc.patch ];
});

View file

@ -10,7 +10,6 @@ stdenv.mkDerivation rec {
};
preConfigure = ''
patchShebangs ./
sed -i "s;usr/;;g" INSTALL.im
'';

View file

@ -24,9 +24,7 @@ stdenv.mkDerivation {
++ stdenv.lib.optional (qt4 != null) "--with-doxywizard";
preConfigure =
''
patchShebangs .
'' + stdenv.lib.optionalString (qt4 != null)
stdenv.lib.optionalString (qt4 != null)
''
echo "using QTDIR=${qt4}..."
export QTDIR=${qt4}

View file

@ -12,7 +12,6 @@ stdenv.mkDerivation rec {
};
preConfigure = ''
patchShebangs scripts/.
sed -i 's;/usr;;g' INSTALL.im
substituteInPlace build --replace /usr/bin/icmake ${icmake}/bin/icmake
substituteInPlace macros/rawmacros/startdoc.pl --replace /usr/bin/perl ${perl}/bin/perl

View file

@ -25,10 +25,6 @@ stdenv.mkDerivation rec {
cd source
# Related to issue #1963
sed -i 's/-fuse-ld=gold//g' Makefile
for i in util/*.pl; do
patchShebangs $i
done
patchShebangs util/gen-mi-enum
'';
makeFlags = [ "prefix=$(out)" "FORCE_CC=gcc" "FORCE_CXX=g++" "HOSTCXX=g++"

View file

@ -527,8 +527,6 @@ rec {
configurePhase = ":";
buildPhase = ''
patchShebangs .
target=$out/${rtpPath}/youcompleteme
mkdir -p $target
cp -a ./ $target

View file

@ -22,7 +22,6 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
postPatch = ''
patchShebangs tools
sed -i -e 's/which/type -P/' tools/*.sh
sed -i -e 's|clang++|& -I${libcxx}/include/c++/v1|' cctools/autogen.sh

View file

@ -8,8 +8,6 @@ stdenv.mkDerivation {
sha256 = "1ak3h3psg3wk9yk0dqnzdzik3jadzja3ah22vjfmf71p3b5xc8ai";
};
preConfigure = "patchShebangs ./configure";
configureFlags = "--datadir=$(prefix)/data";
meta = {

View file

@ -10,8 +10,6 @@ stdenv.mkDerivation rec {
};
preConfigure = ''
patchShebangs .
# ignore warnings
sed -i 's/-Werror -Wall//' Makefile
'';

View file

@ -14,11 +14,6 @@ stdenv.mkDerivation rec {
buildInputs =
[ erlang python libxml2 libxslt xmlto docbook_xml_dtd_45 docbook_xsl zip unzip ];
preBuild =
''
# Fix the "/usr/bin/env" in "calculate-relative".
patchShebangs .
'';
installFlags = "TARGET_DIR=$(out)/libexec/rabbitmq SBIN_DIR=$(out)/sbin MAN_DIR=$(out)/share/man DOC_INSTALL_DIR=$(out)/share/doc";

View file

@ -14,7 +14,6 @@ stdenv.mkDerivation rec {
buildInputs = [ go ];
buildPhase = ''
patchShebangs build
./build
'';

View file

@ -36,7 +36,6 @@ stdenv.mkDerivation rec {
# 'chrpath' is used to be able to run the tests from the source tree, but
# we use $LD_LIBRARY_PATH instead.
buildPhase = ''
patchShebangs .
mkdir -p "$out"
sed -e "s|python_lib_dir = .*|python_lib_dir = \"$out/lib/${pythonFull.libPrefix}/site-packages\"|" -i SConstruct
scons prefix="$out" leapfetch=no gpsd_user=${gpsdUser} gpsd_group=${gpsdGroup} \

View file

@ -52,7 +52,6 @@ stdenv.mkDerivation rec {
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2 $additionalFlags"
export PATH="$PATH:${stdenv.cc.libc}/sbin"
patchShebangs .
'';
meta = {

View file

@ -10,7 +10,6 @@ stdenv.mkDerivation rec {
preConfigure = ''
export ALLOW_WARNINGS=1
patchShebangs .
'';
configureFlags = "--lib-path ${gperftools}/lib";

View file

@ -32,7 +32,6 @@ stdenv.mkDerivation rec {
cp -R getopt riaknostic/deps
cp -R meck riaknostic/deps
popd
patchShebangs .
'';
buildPhase = ''

View file

@ -24,7 +24,6 @@ stdenv.mkDerivation {
preConfigure = ''
ln -s ${kernel.dev}/lib/modules/*/build $TMP/linux
patchShebangs .
for i in `grep -l -R '/usr/\(include\|src\)' .`; do
echo "Patch /usr/include and /usr/src in $i"
substituteInPlace $i \

View file

@ -19,7 +19,6 @@ stdenv.mkDerivation {
nativeBuildInputs = [ pandoc perl makeWrapper ];
patchPhase = ''
patchShebangs .
substituteInPlace Makefile --replace "-Werror" ""
substituteInPlace Makefile --replace "./format-subst.pl" "perl ./format-subst.pl"
'' + optionalString par2Support ''

View file

@ -10,10 +10,6 @@ stdenv.mkDerivation rec {
sha256 = "e9787dea39aeafa38b26604752561bc895083c17b588489d857ac05c58be196b";
};
postPatch = ''
patchShebangs ./
'';
buildInputs = [
pkgconfig which gettext intltool
glib gtk2

View file

@ -29,7 +29,6 @@ buildPythonPackage rec {
propagatedBuildInputs = [ parted ];
checkPhase = ''
patchShebangs Makefile
make test PYTHON=${python.executable}
'';

View file

@ -12,9 +12,8 @@ stdenv.mkDerivation rec {
makeFlags="PREFIX=$out"
'';
patchPhase=''
postBuild=''
tar -xf testsuite.tar
patchShebangs .
'';
doCheck = true;

View file

@ -16,7 +16,6 @@ stdenv.mkDerivation rec {
mkdir build
cd build
../configure --prefix=$out
patchShebangs ../build-aux/
'';
installPhase = ''

View file

@ -12,7 +12,6 @@ stdenv.mkDerivation rec {
patches = stdenv.lib.optional doCheck ./gpt-unicode-test-fix.patch;
postPatch = stdenv.lib.optionalString doCheck ''
patchShebangs tests
'';
buildInputs = [ libuuid ]

View file

@ -32,7 +32,6 @@ let
];
postPatch = ''
export wineDir=$(pwd)
patchShebangs $wineDir/tools/
chmod u+w $wineDir/../git-export/debian/tools/
patchShebangs $wineDir/../git-export/debian/tools/
chmod -R +rwx ../git-export/

View file

@ -21,7 +21,6 @@ stdenv.mkDerivation {
checkPhase = ''
rm tests/test-*vim.sh tests/test-pip.sh
patchShebangs ./; dontPatchShebags=1
sed -i 's|^/bin/||' tests/test-fileops.sh
./testall.sh

View file

@ -11,7 +11,6 @@ stdenv.mkDerivation rec {
buildInputs = [ tex perl ghostscript netpbm ];
preConfigure = ''
patchShebangs .
sed -i -e "s|#! /bin/cat|#! $(type -p cat)|" configure
configureFlags="--with-texpath=$out/share/texmf-nix";
'';

View file

@ -12,8 +12,6 @@ in pythonPackages.buildPythonPackage rec {
};
preBuild = ''
patchShebangs ./tools
substituteInPlace setup.py \
--replace /usr $out \
--replace /etc $out/etc \

View file

@ -1357,7 +1357,6 @@ let self = _self // overrides; _self = with self; {
url = mirror://cpan/authors/id/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-2.21.tar.gz;
sha256 = "0gca1cjy2k0mrpfnbyzm5islzfayqfvg3zzlrlm7n60p0cb48y7w";
};
preConfigure = "patchShebangs .";
meta = {
description = "A module for creating generic methods";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];

View file

@ -7213,10 +7213,6 @@ let
sha256 = "1mrh233pj584gf7la64d4xlmvdnfl4jwpxs95lnd3i4zd5drid14";
};
preConfigure = ''
patchShebangs .
'';
buildInputs = [
self.setuptools self.nose pkgs.pkgconfig pkgs.swig pkgs.libcdio
];
@ -7585,7 +7581,6 @@ let
propagatedBuildInputs = with self; [ pkgs.parted ];
checkPhase = ''
patchShebangs Makefile
make test PYTHON=${python.executable}
'';