diff options
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r-- | pkgs/os-specific/linux/alsa/1.0.19.nix | 14 | ||||
-rw-r--r-- | pkgs/os-specific/linux/alsa/common.nix | 11 | ||||
-rw-r--r-- | pkgs/os-specific/linux/kernel/generic.nix | 4 | ||||
-rw-r--r-- | pkgs/os-specific/linux/kernel/linux-2.6.27.nix | 4 | ||||
-rw-r--r-- | pkgs/os-specific/linux/kernel/linux-2.6.28.nix | 4 | ||||
-rw-r--r-- | pkgs/os-specific/linux/klibc/default.nix | 40 | ||||
-rw-r--r-- | pkgs/os-specific/linux/mingetty/builder.sh | 8 | ||||
-rw-r--r-- | pkgs/os-specific/linux/mingetty/default.nix | 18 | ||||
-rw-r--r-- | pkgs/os-specific/linux/mingetty/makefile.patch | 20 | ||||
-rw-r--r-- | pkgs/os-specific/linux/splashutils/1.3.nix | 2 | ||||
-rw-r--r-- | pkgs/os-specific/linux/splashutils/1.5.nix | 2 | ||||
-rw-r--r-- | pkgs/os-specific/linux/splashutils/no-fbsplash.patch | 88 |
12 files changed, 137 insertions, 78 deletions
diff --git a/pkgs/os-specific/linux/alsa/1.0.19.nix b/pkgs/os-specific/linux/alsa/1.0.19.nix new file mode 100644 index 000000000000..60c848fcaccd --- /dev/null +++ b/pkgs/os-specific/linux/alsa/1.0.19.nix @@ -0,0 +1,14 @@ +args: with args; + +rec { + alsaLib = (import ./common.nix) { + aName = "lib"; + sha256 = "11i898dc6qbachn046gl6dg6g7bl2k8crddl97f3z5i57bcjdvij"; + } args; + + alsaUtils = (import ./common.nix) { + aName = "utils"; + sha256 = "1bcchd5nwgb2hy0z9c6jxbqlzirkh6wvxv6nldjcwmvqmvsj8j8z"; + buildInputs = [alsaLib ncurses gettext]; + } args; +} diff --git a/pkgs/os-specific/linux/alsa/common.nix b/pkgs/os-specific/linux/alsa/common.nix index 218a4b91c8e7..b14d458d7378 100644 --- a/pkgs/os-specific/linux/alsa/common.nix +++ b/pkgs/os-specific/linux/alsa/common.nix @@ -9,5 +9,14 @@ args: with args; stdenv.mkDerivation rec { inherit buildInputs propagatedBuildInputs; - meta = { homepage = http://www.alsa-project.org; }; + meta = { + description = "ALSA, the Advanced Linux Sound Architecture (${aName})"; + + longDescription = '' + The Advanced Linux Sound Architecture (ALSA) provides audio and + MIDI functionality to the Linux-based operating system. + ''; + + homepage = http://www.alsa-project.org/; + }; } diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index 11bac64ced7c..4db485c2c47c 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -34,6 +34,8 @@ , # A list of additional statements to be appended to the # configuration file. extraConfig ? [] + +, preConfigure ? "" }: assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux"; @@ -55,6 +57,8 @@ stdenv.mkDerivation { builder = ./builder.sh; + inherit preConfigure; + inherit src config; patches = map (p: p.patch) kernelPatches; diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.27.nix b/pkgs/os-specific/linux/kernel/linux-2.6.27.nix index a1e77b1b94bc..e0f8e953c101 100644 --- a/pkgs/os-specific/linux/kernel/linux-2.6.27.nix +++ b/pkgs/os-specific/linux/kernel/linux-2.6.27.nix @@ -5,11 +5,11 @@ assert !userModeLinux; import ./generic.nix ( rec { - version = "2.6.27.11"; + version = "2.6.27.13"; src = fetchurl { url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; - sha256 = "0mwcycipbs7n9zzzarnlikyl0k7pcs8yk8n5mhz92illxgzzihjn"; + sha256 = "1zxyid70nlzxmx08mrg6a2vafqvs6q1szlcix417d1qq52c88l9i"; }; features = { diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.28.nix b/pkgs/os-specific/linux/kernel/linux-2.6.28.nix index bb42312b6333..4c5e0467c7ff 100644 --- a/pkgs/os-specific/linux/kernel/linux-2.6.28.nix +++ b/pkgs/os-specific/linux/kernel/linux-2.6.28.nix @@ -5,11 +5,11 @@ assert !userModeLinux; import ./generic.nix ( rec { - version = "2.6.28"; + version = "2.6.28.2"; src = fetchurl { url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; - sha256 = "1023nl992s4qmnwzbfz385azzpph58azi5rw4w0wwzzybv2rf3df"; + sha256 = "0fw4wv9xnajsw3prp2p79470wsflpnigflyyg21s2lfy0xn66ay8"; }; features = { diff --git a/pkgs/os-specific/linux/klibc/default.nix b/pkgs/os-specific/linux/klibc/default.nix index 024b1ffe9fa3..3a92c2f4d297 100644 --- a/pkgs/os-specific/linux/klibc/default.nix +++ b/pkgs/os-specific/linux/klibc/default.nix @@ -1,30 +1,34 @@ -{stdenv, fetchurl, perl, bison, mktemp, kernel - , version ? "1.5" - , sha256 ? "1izhf8kscjymsvsvhcqw9awnmp94vwv70zdj09srg9bkpjj0n017" - , subdir ? "" - , addPreBuild ? "" -}: +{stdenv, fetchurl, perl, bison, mktemp, kernelHeaders}: assert stdenv.isLinux; +let version = "1.5"; in + stdenv.mkDerivation { name = "klibc-${version}"; - #builder = ./builder.sh; + + src = fetchurl { + url = "mirror://kernel/linux/libs/klibc/klibc-${version}.tar.bz2"; + sha256 = "1izhf8kscjymsvsvhcqw9awnmp94vwv70zdj09srg9bkpjj0n017"; + }; + makeFlags = ["V=1" "prefix=$out" "SHLIBDIR=$out/lib"]; + preBuild = '' makeFlags=$(eval "echo $makeFlags") - mkdir -p linux/include - cp -prd $kernel/lib/modules/*/build/include/* linux/include/ + mkdir linux + cp -prsd ${kernelHeaders}/include linux/ chmod -R u+w linux/include/ - '' + addPreBuild; - src = fetchurl { - url = "mirror://kernel/linux/libs/klibc/${subdir}klibc-${version}.tar.bz2"; - inherit sha256; -# url = mirror://kernel/linux/libs/klibc/Testing/klibc-1.5.14.tar.bz2; -# sha256 = "1cmrqpgamnv2ns7dlxjm61zc88dxm4ff0aya413ij1lmhp2h2sfc"; - }; - inherit kernel; + ''; # */ + + # Install static binaries as well. + postInstall = '' + dir=$out/lib/klibc/bin.static + mkdir $dir + cp $(find $(find . -name static) -type f ! -name "*.g" -a ! -name ".*") $dir/ + cp usr/dash/sh $dir/ + ''; + buildInputs = [perl bison mktemp]; - #patches = [./install.patch]; } diff --git a/pkgs/os-specific/linux/mingetty/builder.sh b/pkgs/os-specific/linux/mingetty/builder.sh deleted file mode 100644 index 2a2d5005455f..000000000000 --- a/pkgs/os-specific/linux/mingetty/builder.sh +++ /dev/null @@ -1,8 +0,0 @@ -source $stdenv/setup - -echo $out - -export DESTDIR=$out - -genericBuild - diff --git a/pkgs/os-specific/linux/mingetty/default.nix b/pkgs/os-specific/linux/mingetty/default.nix index efb8240fdde5..fc3c50e1986e 100644 --- a/pkgs/os-specific/linux/mingetty/default.nix +++ b/pkgs/os-specific/linux/mingetty/default.nix @@ -1,11 +1,19 @@ {stdenv, fetchurl}: stdenv.mkDerivation { - name = "mingetty-1.07"; - builder = ./builder.sh; + name = "mingetty-1.08"; + src = fetchurl { - url = ftp://ftp.nluug.nl/pub/os/Linux/distr/debian/pool/main/m/mingetty/mingetty_1.07.orig.tar.gz; - md5 = "491dedf1ceff0e0f5f7bb9f55bf5213e"; + url = mirror://sourceforge/mingetty/mingetty-1.08.tar.gz; + sha256 = "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"; + }; + + preInstall = '' + ensureDir $out/sbin $out/share/man/man8 + makeFlagsArray=(SBINDIR=$out/sbin MANDIR=$out/share/man/man8) + ''; + + meta = { + homepage = http://sourceforge.net/projects/mingetty; }; - patches = [./makefile.patch]; } diff --git a/pkgs/os-specific/linux/mingetty/makefile.patch b/pkgs/os-specific/linux/mingetty/makefile.patch deleted file mode 100644 index 5b8091b6ff1c..000000000000 --- a/pkgs/os-specific/linux/mingetty/makefile.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff -ruN mingetty-1.07.orig/Makefile mingetty-1.07.orig.new/Makefile ---- mingetty-1.07.orig/Makefile 2003-05-24 21:21:17.000000000 +0200 -+++ mingetty-1.07.orig.new/Makefile 2005-06-23 15:43:28.000000000 +0200 -@@ -1,4 +1,4 @@ --DESTDIR= -+DESTDIR=$(out) - CC=gcc - CFLAGS=-O2 -Wall -W -pipe -D_GNU_SOURCE - MANDIR=/usr/share/man/man8 -@@ -7,8 +7,8 @@ - all: mingetty - - install: all -- install -m 0755 mingetty $(DESTDIR)$(SBINDIR) -- install -m 0644 mingetty.8 $(DESTDIR)$(MANDIR) -+ install -D -m 0755 mingetty $(DESTDIR)$(SBINDIR)/mingetty -+ install -D -m 0644 mingetty.8 $(DESTDIR)$(MANDIR)/mingetty.8 - - mingetty: mingetty.o - diff --git a/pkgs/os-specific/linux/splashutils/1.3.nix b/pkgs/os-specific/linux/splashutils/1.3.nix index 9775f66a1b79..51c53dd2a799 100644 --- a/pkgs/os-specific/linux/splashutils/1.3.nix +++ b/pkgs/os-specific/linux/splashutils/1.3.nix @@ -2,10 +2,12 @@ stdenv.mkDerivation { name = "splashutils-1.3"; + src = fetchurl { url = http://dev.gentoo.org/~spock/projects/splashutils/archive/splashutils-1.3.tar.bz2; md5 = "c7c92b98e34b860511aa57bd29d62f76"; }; + patches = [ ./purity.patch ./no-fbsplash.patch diff --git a/pkgs/os-specific/linux/splashutils/1.5.nix b/pkgs/os-specific/linux/splashutils/1.5.nix index 2544b3f05654..48c1b0ff78ce 100644 --- a/pkgs/os-specific/linux/splashutils/1.5.nix +++ b/pkgs/os-specific/linux/splashutils/1.5.nix @@ -4,7 +4,7 @@ stdenv.mkDerivation { name = "splashutils-1.5.4.3"; src = fetchurl { - url = http://download.berlios.de/fbsplash/splashutils-1.5.4.3.tar.bz2; + url = http://dev.gentoo.org/~spock/projects/splashutils/current/splashutils-1.5.4.3.tar.bz2; sha256 = "0vn0ifqp9a3bmprzx2yr82hgq8m2y5xv8qcifs2plz6p3lidagpg"; }; diff --git a/pkgs/os-specific/linux/splashutils/no-fbsplash.patch b/pkgs/os-specific/linux/splashutils/no-fbsplash.patch index a39fda6591c3..f83275ea84a1 100644 --- a/pkgs/os-specific/linux/splashutils/no-fbsplash.patch +++ b/pkgs/os-specific/linux/splashutils/no-fbsplash.patch @@ -1,21 +1,67 @@ -diff --git a/splash.h b/splash.h -index 5dccfe0..eae2939 100644 ---- a/splash.h -+++ b/splash.h -@@ -30,10 +30,14 @@ #endif - */ - #ifdef TARGET_KERNEL - #include <linux/fb.h> -- #include <linux/console_splash.h> -+ #ifdef CONFIG_FBSPLASH -+ #include <linux/console_splash.h> -+ #endif - #else - #include <fb.h> -- #include <console_splash.h> -+ #ifdef CONFIG_FBSPLASH -+ #include <console_splash.h> -+ #endif - #endif - - /* +diff -rc splashutils-1.3-orig/splash.h splashutils-1.3/splash.h +*** splashutils-1.3-orig/splash.h 2006-07-15 00:02:23.000000000 +0200 +--- splashutils-1.3/splash.h 2009-01-29 16:41:00.000000000 +0100 +*************** +*** 21,40 **** + */ + #ifdef TARGET_KERNEL + #include <linux/fb.h> +- #include <linux/console_splash.h> + #else + #include <fb.h> +- #include <console_splash.h> + #endif + + /* + * Necessary to avoid compilation errors when fbsplash support is + * disabled. + */ +- #if !defined(CONFIG_FBSPLASH) + #define FB_SPLASH_IO_ORIG_USER 0 + #define FB_SPLASH_IO_ORIG_KERNEL 1 +! #endif + + /* + * Adjustable settings +--- 21,60 ---- + */ + #ifdef TARGET_KERNEL + #include <linux/fb.h> + #else + #include <fb.h> + #endif + + /* + * Necessary to avoid compilation errors when fbsplash support is + * disabled. + */ + #define FB_SPLASH_IO_ORIG_USER 0 + #define FB_SPLASH_IO_ORIG_KERNEL 1 +! +! #define FBIOSPLASH_SETCFG _IOWR('F', 0x19, struct fb_splash_iowrapper) +! #define FBIOSPLASH_GETCFG _IOR('F', 0x1A, struct fb_splash_iowrapper) +! #define FBIOSPLASH_SETSTATE _IOWR('F', 0x1B, struct fb_splash_iowrapper) +! #define FBIOSPLASH_GETSTATE _IOR('F', 0x1C, struct fb_splash_iowrapper) +! #define FBIOSPLASH_SETPIC _IOWR('F', 0x1D, struct fb_splash_iowrapper) +! +! #define FB_SPLASH_THEME_LEN 128 /* Maximum lenght of a theme name */ +! +! struct fb_splash_iowrapper +! { +! unsigned short vc; /* Virtual console */ +! unsigned char origin; /* Point of origin of the request */ +! void *data; +! }; +! +! /* A structure used by the framebuffer splash code (drivers/video/fbsplash.c) */ +! struct vc_splash { +! __u8 bg_color; /* The color that is to be treated as transparent */ +! __u8 state; /* Current splash state: 0 = off, 1 = on */ +! __u16 tx, ty; /* Top left corner coordinates of the text field */ +! __u16 twidth, theight; /* Width and height of the text field */ +! char* theme; +! }; + + /* + * Adjustable settings +Only in splashutils-1.3/: splash.h~ |