2013-04-01 17:12:32 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool
|
|
|
|
, expat, acl, udev, glib, libatasmart, polkit
|
|
|
|
, libxslt, docbook_xsl, utillinux, mdadm
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-20 23:14:03 +00:00
|
|
|
name = "udisks-2.1.1";
|
2013-04-01 17:12:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://udisks.freedesktop.org/releases/${name}.tar.bz2";
|
2013-12-20 23:14:03 +00:00
|
|
|
sha256 = "1yw6h3l13y796adwgj6m4j3hijv58lgpf98mq24nn9da73zhjfq1";
|
2013-04-01 17:12:32 +01:00
|
|
|
};
|
|
|
|
|
2013-04-02 12:37:32 +01:00
|
|
|
patches = [ ./force-path.patch ];
|
|
|
|
|
|
|
|
# FIXME remove /var/run/current-system/sw/* references
|
|
|
|
# FIXME add references to parted, cryptsetup, etc (see the sources)
|
2013-04-01 17:12:32 +01:00
|
|
|
postPatch =
|
|
|
|
''
|
|
|
|
substituteInPlace src/main.c --replace \
|
2013-04-02 12:37:32 +01:00
|
|
|
"@path@" \
|
2013-04-01 17:12:32 +01:00
|
|
|
"${utillinux}/bin:${mdadm}/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ expat acl udev glib libatasmart polkit ]; # in closure anyway
|
|
|
|
|
|
|
|
buildInputs = [ libxslt docbook_xsl ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/systemd"
|
|
|
|
"--with-udevdir=$(out)/lib/udev"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.freedesktop.org/wiki/Software/udisks;
|
|
|
|
description = "A daemon and command-line utility for querying and manipulating storage devices";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|