udev-182: add package (stripped, last version providing libudev.so.0)

This commit is contained in:
Nikolay Amiantov 2015-06-12 01:59:57 +03:00
parent f8bf2326a4
commit c865eb56ab
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ stdenv, fetchurl, pkgconfig
, pciutils, utillinux, kmod, usbutils, gperf
}:
assert stdenv ? glibc;
stdenv.mkDerivation rec {
name = "udev-182";
src = fetchurl {
url = "mirror://kernel/linux/utils/kernel/hotplug/${name}.tar.bz2";
sha256 = "143qvm0kij26j2l5icnch4x38fajys6li7j0c5mpwi6kqmc8hqx0";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ utillinux kmod usbutils #glib gobjectIntrospection
gperf
];
configureFlags = [ "--with-pci-ids-path=${pciutils}/share/pci.ids"
"--disable-gudev"
"--disable-introspection"
];
NIX_LDFLAGS = [ "-lrt" ];
meta = with stdenv.lib; {
homepage = http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html;
description = "Udev manages the /dev filesystem";
platforms = platforms.linux;
license = licenses.gpl2;
};
}

View file

@ -10286,6 +10286,9 @@ let
udev = pkgs.systemd;
eudev = callPackage ../os-specific/linux/eudev {};
# libudev.so.0
udev182 = callPackage ../os-specific/linux/udev/182.nix { };
udisks1 = callPackage ../os-specific/linux/udisks/1-default.nix { };
udisks2 = callPackage ../os-specific/linux/udisks/2-default.nix { };
udisks = udisks1;