1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

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:
Yury G. Kudryashov 2010-04-02 07:11:56 +00:00
parent c3e38d11f0
commit 7531041ca4

View file

@ -8,12 +8,15 @@ stdenv.mkDerivation rec {
};
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"
chmod +x "$n"
done
sed -i -e "s,/etc/vim,,g" Makefile.in
'';
preInstall = "ensureDir $out/etc/vim";
buildInputs = [ python ];
meta = {