2015-12-15 00:38:07 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gnused
|
2014-12-25 18:08:57 +01:00
|
|
|
, expat, acl, systemd, glib, libatasmart, polkit
|
2015-09-08 14:51:14 +02:00
|
|
|
, libxslt, docbook_xsl, utillinux, mdadm, libgudev
|
2013-04-01 18:12:32 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-07-02 18:05:15 +02:00
|
|
|
name = "udisks-2.1.6";
|
2013-04-01 18:12:32 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://udisks.freedesktop.org/releases/${name}.tar.bz2";
|
2015-07-02 18:05:15 +02:00
|
|
|
sha256 = "0spl155k0g2l2hvqf8xyjv08i68gfyhzpjva6cwlzxx0bz4gbify";
|
2013-04-01 18:12:32 +02:00
|
|
|
};
|
|
|
|
|
2017-07-11 11:14:14 +02:00
|
|
|
outputs = [ "out" "man" ];
|
2015-07-26 13:43:49 +02:00
|
|
|
|
2013-04-02 13:37:32 +02: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 18:12:32 +02:00
|
|
|
postPatch =
|
|
|
|
''
|
|
|
|
substituteInPlace src/main.c --replace \
|
2013-04-02 13:37:32 +02:00
|
|
|
"@path@" \
|
2015-12-15 00:38:07 +01:00
|
|
|
"${utillinux}/bin:${mdadm}/bin:/run/current-system/sw/bin"
|
|
|
|
substituteInPlace data/80-udisks2.rules \
|
|
|
|
--replace "/bin/sh" "${stdenv.shell}" \
|
|
|
|
--replace "/sbin/mdadm" "${mdadm}/bin/mdadm" \
|
|
|
|
--replace " sed " " ${gnused}/bin/sed "
|
2013-04-01 18:12:32 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
|
|
|
|
2015-09-08 14:53:14 +02:00
|
|
|
buildInputs = [ libxslt docbook_xsl libgudev expat acl systemd glib libatasmart polkit ];
|
2013-04-01 18:12:32 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
2014-03-13 21:44:51 +01:00
|
|
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
2013-04-01 18:12:32 +02:00
|
|
|
"--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;
|
|
|
|
};
|
|
|
|
}
|