From e5db73bd739a792c8da019f690ee95b1172eb7ce Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Wed, 17 Aug 2005 17:37:55 +0000 Subject: [PATCH] add Linux hot-plug svn path=/nixpkgs/trunk/; revision=3626 --- pkgs/os-specific/linux/hotplug/default.nix | 10 ++++++++++ .../linux/hotplug/hotplug-install-path.patch | 12 ++++++++++++ pkgs/system/all-packages-generic.nix | 4 ++++ 3 files changed, 26 insertions(+) create mode 100644 pkgs/os-specific/linux/hotplug/default.nix create mode 100644 pkgs/os-specific/linux/hotplug/hotplug-install-path.patch diff --git a/pkgs/os-specific/linux/hotplug/default.nix b/pkgs/os-specific/linux/hotplug/default.nix new file mode 100644 index 000000000000..f3b4533a6f84 --- /dev/null +++ b/pkgs/os-specific/linux/hotplug/default.nix @@ -0,0 +1,10 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "hotplug-2004_03_29"; + src = fetchurl { + url = http://surfnet.dl.sourceforge.net/sourceforge/linux-hotplug/hotplug-2004_03_29.tar.gz; + md5 = "167bd479a1ca30243c51ca088e0942b3"; + }; + patches = [./hotplug-install-path.patch]; +} diff --git a/pkgs/os-specific/linux/hotplug/hotplug-install-path.patch b/pkgs/os-specific/linux/hotplug/hotplug-install-path.patch new file mode 100644 index 000000000000..5ddaf94f3361 --- /dev/null +++ b/pkgs/os-specific/linux/hotplug/hotplug-install-path.patch @@ -0,0 +1,12 @@ +diff -ruN hotplug-2004_03_29/Makefile hotplug-2004_03_29.new/Makefile +--- hotplug-2004_03_29/Makefile 2003-06-28 02:13:10.000000000 +0200 ++++ hotplug-2004_03_29.new/Makefile 2005-08-17 19:35:53.000000000 +0200 +@@ -5,7 +5,7 @@ + REV=$(shell date "+%Y_%m_%d"| awk '{print $$1}') + + # System locations +-prefix = ++prefix = ${out} + exec_prefix = ${prefix} + etcdir = ${prefix}/etc + sbindir = ${exec_prefix}/sbin diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 08e6c3962a72..94f9ff17e034 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -1100,6 +1100,10 @@ rec { inherit fetchurl stdenv nasm perl; }; + hotplug = import ../os-specific/linux/hotplug { + inherit fetchurl stdenv; + }; + ### DATA docbook_xml_dtd_42 = (import ../data/sgml+xml/schemas/xml-dtd/docbook-4.2) {