add dietlibc

svn path=/nixpkgs/trunk/; revision=3729
This commit is contained in:
Armijn Hemel 2005-08-27 23:05:50 +00:00
parent ef60b29c05
commit 981a1f0f6e
4 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,11 @@
. $stdenv/setup
preBuild() {
kernelhash=$(ls $kernel/lib/modules)
echo $kernelhash
ln -s $kernel/lib/modules/$kernelhash/build linux
}
preBuild=preBuild
genericBuild

View File

@ -0,0 +1,12 @@
{stdenv, fetchurl}:
assert stdenv.system == "i686-linux";
stdenv.mkDerivation {
name = "dietlibc-0.29";
src = fetchurl {
url = http://www.kernel.org/pub/linux/libs/dietlibc/dietlibc-0.29.tar.bz2;
md5 = "16d31dd7b5f9124e8ea8280c3f646e13";
};
patches = [./dietlibc-install.patch];
}

View File

@ -0,0 +1,10 @@
diff -ruN dietlibc-0.29/Makefile dietlibc-0.29.new/Makefile
--- dietlibc-0.29/Makefile 2005-05-18 16:38:55.000000000 +0200
+++ dietlibc-0.29.new/Makefile 2005-08-28 01:02:50.000000000 +0200
@@ -1,5 +1,5 @@
INSTALL=install
-prefix?=/opt/diet
+prefix?=${out}
# Set the following to install to a different root
#DESTDIR=/tmp/fefix
# Use "make DEBUG=1" to compile a debug version.

View File

@ -1089,6 +1089,10 @@ rec {
### OS-SPECIFIC
dietlibc = (import ../os-specific/linux/dietlibc) {
inherit fetchurl stdenv;
};
hwdata = (import ../os-specific/linux/hwdata) {
inherit fetchurl stdenv;
};