diff options
author | Armijn Hemel <armijn@gpl-violations.org> | 2005-12-23 15:58:41 +0000 |
---|---|---|
committer | Armijn Hemel <armijn@gpl-violations.org> | 2005-12-23 15:58:41 +0000 |
commit | 0ea291d760e658ff588b7ce595b236b1794c8cbf (patch) | |
tree | 82779e08b27742b87b5984d973917eff671c187b /pkgs/os-specific | |
parent | 9a3162f1ff27e1d31887812ccc2478b07ef8e66b (diff) |
add kudzu, needed for hardware detection in NixOS...
svn path=/nixpkgs/trunk/; revision=4418
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/kudzu/default.nix | 11 | ||||
-rw-r--r-- | pkgs/os-specific/linux/kudzu/kudzu-python.patch | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kudzu/default.nix b/pkgs/os-specific/linux/kudzu/default.nix new file mode 100644 index 0000000000000..0571bbbbd0172 --- /dev/null +++ b/pkgs/os-specific/linux/kudzu/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl, pciutils, python, popt, gettext}: + +stdenv.mkDerivation { + name = "kudzu-1.2.16"; + src = fetchurl { + url = http://losser.labs.cs.uu.nl/~armijn/.nix/kudzu-1.2.16.tar.gz; + md5 = "5fc786dd558064fd9c9cb3e5be10e799"; + }; + buildInputs = [pciutils python popt gettext]; + patches = [./kudzu-python.patch]; +} diff --git a/pkgs/os-specific/linux/kudzu/kudzu-python.patch b/pkgs/os-specific/linux/kudzu/kudzu-python.patch new file mode 100644 index 0000000000000..7728ddb6e79a3 --- /dev/null +++ b/pkgs/os-specific/linux/kudzu/kudzu-python.patch @@ -0,0 +1,12 @@ +diff -ruN kudzu-1.2.16/Makefile kudzu-1.2.16.new/Makefile +--- kudzu-1.2.16/Makefile 2005-10-28 21:57:55.000000000 +0200 ++++ kudzu-1.2.16.new/Makefile 2005-12-23 16:30:37.000000000 +0100 +@@ -17,7 +17,7 @@ + + CVSTAG = kudzu-r$(subst .,-,$(VERSION)) + +-PYTHONVERS = $(shell ls /usr/include/python*/Python.h | sed "s|/usr/include/||g"| sed "s|/Python.h||g") ++PYTHONVERS = $(shell ls $(python)/include/python*/Python.h | sed "s|$(python)/include/||g"| sed "s|/Python.h||g") + + CFLAGS += -I. -DVERSION=\"$(VERSION)\" + |