3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/udisks/1-default.nix

45 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, sg3_utils, udev, glib, dbus, dbus-glib
, polkit, parted, lvm2, libatasmart, intltool, libuuid, mdadm
2015-11-14 15:48:48 +00:00
, libxslt, docbook_xsl, utillinux, libgudev }:
stdenv.mkDerivation rec {
2014-10-06 21:11:10 +01:00
name = "udisks-1.0.5";
src = fetchurl {
url = "https://hal.freedesktop.org/releases/${name}.tar.gz";
2014-10-06 21:11:10 +01:00
sha256 = "0wbg3jrv8limdgvcygf4dqin3y6d30y9pcmmk711vq571vmq5v7j";
};
patches = [ ./purity.patch ./no-pci-db.patch ./glibc.patch ];
2014-10-06 21:11:10 +01:00
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" \
"${utillinux}/bin:${mdadm}/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/bin"
'';
buildInputs =
[ sg3_utils udev glib dbus dbus-glib polkit parted libgudev
lvm2 libatasmart intltool libuuid libxslt docbook_xsl
];
nativeBuildInputs = [ pkgconfig ];
2018-07-25 22:44:21 +01:00
configureFlags = [ "--localstatedir=/var" "--enable-lvm2" ];
2018-08-30 20:57:21 +01:00
meta = with stdenv.lib; {
homepage = http://www.freedesktop.org/wiki/Software/udisks;
description = "A daemon and command-line utility for querying and manipulating storage devices";
2018-08-30 20:57:21 +01:00
platforms = platforms.linux;
license = with licenses; [ gpl2 lgpl2Plus ];
};
}