2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, sg3_utils
|
|
|
|
, udev
|
|
|
|
, glib
|
|
|
|
, dbus
|
|
|
|
, dbus-glib
|
|
|
|
, polkit
|
|
|
|
, parted
|
|
|
|
, lvm2
|
|
|
|
, libatasmart
|
|
|
|
, intltool
|
|
|
|
, libuuid
|
|
|
|
, mdadm
|
|
|
|
, libxslt
|
|
|
|
, docbook_xsl
|
|
|
|
, util-linux
|
|
|
|
, libgudev
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "udisks";
|
|
|
|
version = "1.0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://hal.freedesktop.org/releases/udisks-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0wbg3jrv8limdgvcygf4dqin3y6d30y9pcmmk711vq571vmq5v7j";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./purity.patch ./no-pci-db.patch ./glibc.patch ];
|
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
configureFlagsArray+=(--with-systemdsystemunitdir=$out/lib/systemd/system)
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch =
|
|
|
|
''
|
|
|
|
sed -e 's,/sbin/mdadm,${mdadm}&,g' -e "s,@slashlibdir@,$out/lib,g" -i data/80-udisks.rules
|
|
|
|
|
|
|
|
substituteInPlace src/main.c --replace \
|
|
|
|
"/sbin:/bin:/usr/sbin:/usr/bin" \
|
2020-11-24 20:58:05 +00:00
|
|
|
"${util-linux}/bin:${mdadm}/sbin:/run/current-system/sw/bin:/run/current-system/sw/bin"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs =
|
2021-12-06 16:07:01 +00:00
|
|
|
[
|
|
|
|
sg3_utils
|
|
|
|
udev
|
|
|
|
glib
|
|
|
|
dbus
|
|
|
|
dbus-glib
|
|
|
|
polkit
|
|
|
|
parted
|
|
|
|
libgudev
|
|
|
|
lvm2
|
|
|
|
libatasmart
|
|
|
|
intltool
|
|
|
|
libuuid
|
|
|
|
libxslt
|
|
|
|
docbook_xsl
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--localstatedir=/var" "--enable-lvm2" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.freedesktop.org/wiki/Software/udisks";
|
|
|
|
description = "A daemon and command-line utility for querying and manipulating storage devices";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ gpl2 lgpl2Plus ];
|
|
|
|
broken = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
hydraPlatforms = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|