1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00
nixpkgs/pkgs/os-specific/linux/udisks/2-default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool
, expat, acl, systemd, glib, libatasmart, polkit
, libxslt, docbook_xsl, utillinux, mdadm
}:
stdenv.mkDerivation rec {
2015-07-02 17:05:15 +01:00
name = "udisks-2.1.6";
src = fetchurl {
url = "http://udisks.freedesktop.org/releases/${name}.tar.bz2";
2015-07-02 17:05:15 +01:00
sha256 = "0spl155k0g2l2hvqf8xyjv08i68gfyhzpjva6cwlzxx0bz4gbify";
};
outputs = [ "out" "doc" ];
2013-04-02 12:37:32 +01:00
patches = [ ./force-path.patch ];
# FIXME remove /var/run/current-system/sw/* references
# FIXME add references to parted, cryptsetup, etc (see the sources)
postPatch =
''
substituteInPlace src/main.c --replace \
2013-04-02 12:37:32 +01:00
"@path@" \
"${utillinux}/bin:${mdadm}/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/bin"
'';
nativeBuildInputs = [ pkgconfig intltool ];
propagatedBuildInputs = [ expat acl systemd glib libatasmart polkit ]; # in closure anyway
buildInputs = [ libxslt docbook_xsl ];
configureFlags = [
"--localstatedir=/var"
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
"--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;
};
}