mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
notmuch: Use 'find' to patch test script shebangs.
This commit is contained in:
parent
cd223ad0ac
commit
cb3343c48a
@ -13,48 +13,10 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ bash emacs gdb glib gmime gnupg pkgconfig talloc xapian ];
|
||||
|
||||
patchPhase = ''
|
||||
(cd test && for prg in \
|
||||
aggregate-results.sh \
|
||||
argument-parsing \
|
||||
atomicity \
|
||||
author-order \
|
||||
basic \
|
||||
crypto \
|
||||
count \
|
||||
dump-restore \
|
||||
emacs \
|
||||
emacs-large-search-buffer \
|
||||
encoding \
|
||||
from-guessing \
|
||||
help-test \
|
||||
hooks \
|
||||
json \
|
||||
long-id \
|
||||
maildir-sync \
|
||||
multipart \
|
||||
new \
|
||||
notmuch-test \
|
||||
python \
|
||||
raw \
|
||||
reply \
|
||||
search \
|
||||
search-by-folder \
|
||||
search-insufficient-from-quoting \
|
||||
search-folder-coherence \
|
||||
search-limiting \
|
||||
search-output \
|
||||
search-position-overlap-bug \
|
||||
symbol-hiding \
|
||||
tagging \
|
||||
test-lib.sh \
|
||||
test-verbose \
|
||||
thread-naming \
|
||||
thread-order \
|
||||
uuencode \
|
||||
;do
|
||||
substituteInPlace "$prg" \
|
||||
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
||||
done)
|
||||
find test -type f -exec \
|
||||
sed -i \
|
||||
"1s_#!/usr/bin/env bash_#!${bash}/bin/bash_" \
|
||||
"{}" ";"
|
||||
|
||||
for src in \
|
||||
crypto.c \
|
||||
|
Loading…
Reference in New Issue
Block a user