mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01: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:
parent
c3e38d11f0
commit
7531041ca4
1 changed files with 4 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue