forked from mirrors/nixpkgs
80c7cce4e9
svn path=/nixpkgs/trunk/; revision=8836
23 lines
593 B
Nix
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
|
|
";
|
|
}
|