forked from mirrors/nixpkgs
Making nvi avoid /var/tmp.
svn path=/nixpkgs/trunk/; revision=15102
This commit is contained in:
parent
dae40d9c62
commit
b211399689
|
@ -10,8 +10,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
# nvi tries to write to a usual tmp directory (/var/tmp),
|
||||
# so we will force it to use /tmp.
|
||||
patchPhase = ''
|
||||
sed -i s/-lcurses/-lncurses/ build/configure
|
||||
sed -i -e s/-lcurses/-lncurses/ \
|
||||
-e s@vi_cv_path_preserve=no@vi_cv_path_preserve=/tmp/vi.recover@ \
|
||||
-e s@/var/tmp@@ build/configure
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
|
|
Loading…
Reference in a new issue