3
0
Fork 0
forked from mirrors/nixpkgs

Making nvi avoid /var/tmp.

svn path=/nixpkgs/trunk/; revision=15102
This commit is contained in:
Lluís Batlle i Rossell 2009-04-16 20:09:07 +00:00
parent dae40d9c62
commit b211399689

View file

@ -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 = ''