2011-07-23 05:29:51 +04:00
|
|
|
{ stdenv, fetchurl, pkgconfig, sg3_utils, udev, glib, dbus, dbus_glib
|
|
|
|
, polkit, parted, lvm2, libatasmart, intltool, libuuid, mdadm
|
2015-11-14 18:48:48 +03:00
|
|
|
, libxslt, docbook_xsl, utillinux, libgudev }:
|
2011-07-23 05:29:51 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-07 00:11:10 +04:00
|
|
|
name = "udisks-1.0.5";
|
2011-07-23 05:29:51 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://hal.freedesktop.org/releases/${name}.tar.gz";
|
2014-10-07 00:11:10 +04:00
|
|
|
sha256 = "0wbg3jrv8limdgvcygf4dqin3y6d30y9pcmmk711vq571vmq5v7j";
|
2011-07-23 05:29:51 +04:00
|
|
|
};
|
|
|
|
|
2015-11-26 18:45:20 +03:00
|
|
|
patches = [ ./purity.patch ./no-pci-db.patch ./glibc.patch ];
|
2014-10-07 00:11:10 +04:00
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
configureFlagsArray+=(--with-systemdsystemunitdir=$out/lib/systemd/system)
|
|
|
|
'';
|
2011-08-18 16:53:07 +04:00
|
|
|
|
2012-03-01 19:09:53 +04:00
|
|
|
postPatch =
|
|
|
|
''
|
|
|
|
sed -e 's,/sbin/mdadm,${mdadm}&,g' -e "s,@slashlibdir@,$out/lib,g" -i data/80-udisks.rules
|
2011-08-18 16:53:07 +04:00
|
|
|
|
2012-03-01 19:09:53 +04:00
|
|
|
substituteInPlace src/main.c --replace \
|
|
|
|
"/sbin:/bin:/usr/sbin:/usr/bin" \
|
2015-04-01 23:57:06 +03:00
|
|
|
"${utillinux}/bin:${mdadm}/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/bin"
|
2012-03-01 19:09:53 +04:00
|
|
|
'';
|
2011-08-18 16:53:07 +04:00
|
|
|
|
2011-07-23 05:29:51 +04:00
|
|
|
buildInputs =
|
2015-11-14 18:48:48 +03:00
|
|
|
[ sg3_utils udev glib dbus dbus_glib polkit parted libgudev
|
2011-07-23 05:29:51 +04:00
|
|
|
lvm2 libatasmart intltool libuuid libxslt docbook_xsl
|
|
|
|
];
|
|
|
|
|
2012-12-28 22:20:09 +04:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2011-08-18 16:53:07 +04:00
|
|
|
|
2014-04-05 20:56:45 +04:00
|
|
|
configureFlags = "--localstatedir=/var --enable-lvm2";
|
2011-07-23 05:29:51 +04: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-04 02:36:20 +04:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-07-23 05:29:51 +04:00
|
|
|
};
|
|
|
|
}
|