Fix install if /etc/vim exists
Also fix all .py files, not only those going to $out/bin svn path=/nixpkgs/trunk/; revision=20924
This commit is contained in:
parent
c3e38d11f0
commit
7531041ca4
@ -8,12 +8,15 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
for n in asciidoc.py a2x.py; do
|
for n in `find . -name \*.py `; do
|
||||||
sed -i -e "s,^#!/usr/bin/env python,#!${python}/bin/python,g" "$n"
|
sed -i -e "s,^#!/usr/bin/env python,#!${python}/bin/python,g" "$n"
|
||||||
chmod +x "$n"
|
chmod +x "$n"
|
||||||
done
|
done
|
||||||
|
sed -i -e "s,/etc/vim,,g" Makefile.in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preInstall = "ensureDir $out/etc/vim";
|
||||||
|
|
||||||
buildInputs = [ python ];
|
buildInputs = [ python ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user