diff --git a/pkgs/os-specific/linux/udev/default.nix b/pkgs/os-specific/linux/udev/default.nix new file mode 100644 index 000000000000..a2ef643cd75c --- /dev/null +++ b/pkgs/os-specific/linux/udev/default.nix @@ -0,0 +1,10 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "udev-068"; + src = fetchurl { + url = http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-068.tar.bz2; + md5 = "fd9db7375dae81e8aa634414b5ede0d6"; + }; + patches = [./udev-installpath.patch]; +} diff --git a/pkgs/os-specific/linux/udev/udev-installpath.patch b/pkgs/os-specific/linux/udev/udev-installpath.patch new file mode 100644 index 000000000000..0406ee2a2f14 --- /dev/null +++ b/pkgs/os-specific/linux/udev/udev-installpath.patch @@ -0,0 +1,12 @@ +diff -ruN udev-068/Makefile udev-068.new/Makefile +--- udev-068/Makefile 2005-08-18 19:04:49.000000000 +0200 ++++ udev-068.new/Makefile 2005-08-19 16:09:22.000000000 +0200 +@@ -55,7 +55,7 @@ + STARTER = udevstart + RELEASE_NAME = $(ROOT)-$(VERSION) + LOCAL_CFG_DIR = etc/udev +-DESTDIR = ++DESTDIR = ${out} + KERNEL_DIR = /lib/modules/${shell uname -r}/build + + # override this to make udev look in a different location for it's config files diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index e86cf513f67d..ddc83ad7dc03 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -1109,6 +1109,10 @@ rec { inherit fetchurl stdenv; }; + udev = import ../os-specific/linux/udev { + inherit fetchurl stdenv; + }; + ### DATA docbook_xml_dtd_42 = (import ../data/sgml+xml/schemas/xml-dtd/docbook-4.2) {