2011-07-23 02:29:51 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, sg3_utils, udev, glib, dbus, dbus_glib
|
|
|
|
, polkit, parted, lvm2, libatasmart, intltool, libuuid, mdadm
|
2011-08-18 13:53:07 +01:00
|
|
|
, libxslt, docbook_xsl, utillinux, automake, autoconf }:
|
2011-07-23 02:29:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-12-20 23:04:07 +00:00
|
|
|
name = "udisks-1.0.4";
|
2011-07-23 02:29:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://hal.freedesktop.org/releases/${name}.tar.gz";
|
2011-12-20 23:04:07 +00:00
|
|
|
sha256 = "1xgqifddwaavmjc8c30i0mdffyirsld7c6qhfyjw7f9khwv8jjw5";
|
2011-07-23 02:29:51 +01:00
|
|
|
};
|
|
|
|
|
2011-08-18 13:53:07 +01:00
|
|
|
# Move 80-udisks.rules manually to make the patch smaller
|
|
|
|
prePatch = "mv -v data/80-udisks.rules{,.in}";
|
|
|
|
|
|
|
|
# Not written a patch that can be accepted upstream yet
|
|
|
|
postPatch = "sed -e 's@/sbin/mdadm@${mdadm}&@' -i data/80-udisks.rules.in";
|
|
|
|
|
|
|
|
patches = [ ./purity.patch ];
|
|
|
|
|
2011-07-23 02:29:51 +01:00
|
|
|
buildInputs =
|
2011-08-18 13:53:07 +01:00
|
|
|
[ sg3_utils udev glib dbus dbus_glib polkit parted
|
2011-07-23 02:29:51 +01:00
|
|
|
lvm2 libatasmart intltool libuuid libxslt docbook_xsl
|
|
|
|
];
|
|
|
|
|
2011-08-18 13:53:07 +01:00
|
|
|
buildNativeInputs = [ automake autoconf pkgconfig ];
|
|
|
|
|
2011-12-20 23:04:07 +00:00
|
|
|
configureFlags = "--localstatedir=/var --enable-lvm2";
|
2011-07-23 02:29:51 +01:00
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
# Ensure that udisks can find the necessary programs.
|
|
|
|
substituteInPlace src/main.c --replace \
|
|
|
|
"/sbin:/bin:/usr/sbin:/usr/bin" \
|
|
|
|
"${utillinux}/bin:${mdadm}/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin"
|
2011-08-18 13:53:07 +01:00
|
|
|
|
|
|
|
automake
|
2011-07-23 02:29:51 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.freedesktop.org/wiki/Software/udisks;
|
|
|
|
description = "A daemon and command-line utility for querying and manipulating storage devices";
|
2011-08-03 23:36:20 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-07-23 02:29:51 +01:00
|
|
|
};
|
|
|
|
}
|