* Use /var.
svn path=/nixpkgs/trunk/; revision=8836
This commit is contained in:
parent
e562d4c021
commit
80c7cce4e9
|
@ -7,6 +7,16 @@ stdenv.mkDerivation {
|
|||
sha256 = "1jn652zb81mczsx4rdcwrrzj3lfhx9d107zjfnasc4l5yljl204a";
|
||||
};
|
||||
buildInputs = [pkgconfig expat];
|
||||
configureFlags = "--without-x";
|
||||
#configureFlags = "--localstatedir=/var";
|
||||
configureFlags = "--without-x --localstatedir=/var";
|
||||
|
||||
# Awful hack: `make install' wants to write in /var, but it
|
||||
# can't. So redirect it with a DESTDIR.
|
||||
preInstall = "
|
||||
installFlagsArray=(DESTDIR=$out/destdir)
|
||||
";
|
||||
|
||||
postInstall = "
|
||||
mv $out/destdir/$out/* $out
|
||||
rm -rf $out/destdir
|
||||
";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue