nixpkgs/pkgs/development/libraries/dbus/default.nix
Eelco Dolstra 80c7cce4e9 * Use /var.
svn path=/nixpkgs/trunk/; revision=8836
2007-06-05 16:56:10 +00:00

23 lines
593 B
Nix

{stdenv, fetchurl, pkgconfig, expat}:
stdenv.mkDerivation {
name = "dbus-1.0.2";
src = fetchurl {
url = http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz;
sha256 = "1jn652zb81mczsx4rdcwrrzj3lfhx9d107zjfnasc4l5yljl204a";
};
buildInputs = [pkgconfig expat];
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
";
}