2007-03-04 21:28:24 +00:00
|
|
|
{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];
|
2007-06-05 17:56:10 +01:00
|
|
|
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
|
|
|
|
";
|
2007-03-04 21:28:24 +00:00
|
|
|
}
|