2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, sg3_utils, udev, glib, dbus, dbus-glib
|
2011-07-23 03:29:51 +02:00
|
|
|
, polkit, parted, lvm2, libatasmart, intltool, libuuid, mdadm
|
2020-11-24 16:29:28 +01:00
|
|
|
, libxslt, docbook_xsl, util-linux, libgudev }:
|
2011-07-23 03:29:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-06 22:11:10 +02:00
|
|
|
name = "udisks-1.0.5";
|
2011-07-23 03:29:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://hal.freedesktop.org/releases/${name}.tar.gz";
|
2014-10-06 22:11:10 +02:00
|
|
|
sha256 = "0wbg3jrv8limdgvcygf4dqin3y6d30y9pcmmk711vq571vmq5v7j";
|
2011-07-23 03:29:51 +02:00
|
|
|
};
|
|
|
|
|
2015-11-26 16:45:20 +01:00
|
|
|
patches = [ ./purity.patch ./no-pci-db.patch ./glibc.patch ];
|
2014-10-06 22:11:10 +02:00
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
configureFlagsArray+=(--with-systemdsystemunitdir=$out/lib/systemd/system)
|
|
|
|
'';
|
2011-08-18 14:53:07 +02:00
|
|
|
|
2012-03-01 16:09:53 +01:00
|
|
|
postPatch =
|
|
|
|
''
|
|
|
|
sed -e 's,/sbin/mdadm,${mdadm}&,g' -e "s,@slashlibdir@,$out/lib,g" -i data/80-udisks.rules
|
2011-08-18 14:53:07 +02:00
|
|
|
|
2012-03-01 16:09:53 +01:00
|
|
|
substituteInPlace src/main.c --replace \
|
|
|
|
"/sbin:/bin:/usr/sbin:/usr/bin" \
|
2020-11-24 16:29:28 +01:00
|
|
|
"${util-linux}/bin:${mdadm}/sbin:/run/current-system/sw/bin:/run/current-system/sw/bin"
|
2012-03-01 16:09:53 +01:00
|
|
|
'';
|
2011-08-18 14:53:07 +02:00
|
|
|
|
2011-07-23 03:29:51 +02:00
|
|
|
buildInputs =
|
2018-02-25 03:23:58 +01:00
|
|
|
[ sg3_utils udev glib dbus dbus-glib polkit parted libgudev
|
2011-07-23 03:29:51 +02:00
|
|
|
lvm2 libatasmart intltool libuuid libxslt docbook_xsl
|
|
|
|
];
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2011-08-18 14:53:07 +02:00
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--localstatedir=/var" "--enable-lvm2" ];
|
2011-07-23 03:29:51 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.freedesktop.org/wiki/Software/udisks";
|
2011-07-23 03:29:51 +02:00
|
|
|
description = "A daemon and command-line utility for querying and manipulating storage devices";
|
2018-08-30 21:57:21 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ gpl2 lgpl2Plus ];
|
2019-06-10 14:24:22 +02:00
|
|
|
broken = true;
|
|
|
|
hydraPlatforms = [];
|
2011-07-23 03:29:51 +02:00
|
|
|
};
|
|
|
|
}
|