Author: stordeur
Date: Mon Jul 11 14:00:17 2011
New Revision: 27719
URL: https://svn.nixos.org/websvn/nix/?rev=27719&sc=1
Log:
Add udev145
Added:
nixpkgs/trunk/pkgs/os-specific/linux/udev/145.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/os-specific/linux/udev/145.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/os-specific/linux/udev/145.nix Mon Jul 11 14:00:17
2011 (r27719)
@@ -0,0 +1,51 @@
+{stdenv, fetchurl, gperf, pkgconfig, glib, acl, libusb, usbutils, pciutils}:
+
+stdenv.mkDerivation rec {
+ name = "udev-145";
+
+ src = fetchurl {
+ url = "mirror://kernel/linux/utils/kernel/hotplug/${name}.tar.bz2";
+ sha256 = "1zmibp6n7d582fqx8vmg9vb2a1435hghfpz36056bc25ccwf7yiv";
+ };
+
+ buildInputs = [gperf pkgconfig glib acl libusb usbutils];
+
+ configureFlags = "--with-pci-ids-path=${pciutils}/share/pci.ids";
+
+ preConfigure =
+ ''
+ substituteInPlace extras/keymap/Makefile.in \
+ --replace /usr/include ${stdenv.glibc}/include
+ '';
+
+ postInstall =
+ ''
+ # Install some rules that really should be installed by default.
+ for i in 40-alsa.rules 40-infiniband.rules 40-isdn.rules
40-pilot-links.rules 64-device-mapper.rules 64-md-raid.rules; do
+ cp rules/packages/$i $out/libexec/rules.d/
+ done
+
+ # The path to rule_generator.functions in write_cd_rules and
+ # write_net_rules is broken. Also, don't store the mutable
+ # persistant rules in /etc/udev/rules.d but in
+ # /var/lib/udev/rules.d.
+ for i in $out/libexec/write_cd_rules $out/libexec/write_net_rules; do
+ substituteInPlace $i \
+ --replace /lib/udev $out/libexec \
+ --replace /etc/udev/rules.d /var/lib/udev/rules.d
+ done
+
+ # Don't set PATH to /bin:/sbin; won't work in NixOS.
+ substituteInPlace $out/libexec/rule_generator.functions \
+ --replace 'PATH=' '#PATH='
+
+ # Don't hardcore the FIRMWARE_DIRS variable; obtain it from the
+ # environment of the caller.
+ sed '3,4d' -i $out/libexec/firmware.sh
+ '';
+
+ meta = {
+ homepage = http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html;
+ description = "Udev manages the /dev filesystem";
+ };
+}
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Jul 11 14:00:13
2011 (r27718)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Jul 11 14:00:17
2011 (r27719)
@@ -5656,6 +5656,7 @@
cross = assert crossSystem != null; crossSystem;
};
+ udev145 = callPackage ../os-specific/linux/udev/145.nix { };
udev166 = callPackage ../os-specific/linux/udev/166.nix { };
udev = udev166;
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits