Merged with trunk again

svn path=/nixpkgs/branches/stdenv-updates/; revision=10267
This commit is contained in:
Yury G. Kudryashov
2008-01-23 18:11:03 +00:00
parent 4de89f61b0
commit da57804fff
109 changed files with 1394 additions and 1352 deletions
+13 -11
View File
@@ -11,22 +11,24 @@ stdenv.mkDerivation {
url = ftp://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz;
md5 = "cd3f3eb54446be6003156158d51f4884";
};
patches = [
# Patch to add primitive splash screen support (not the fancy SUSE gfxmenu stuff).
# With this you can set splashimage=foo.xpm.gz in menu.lst to get
# a 640x480, 14-colour background.
(fetchurl {
url = "http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/*checkout*/system/grub-gfx/grub-0.97-graphics.patch?rev=HEAD&cvsroot=AUR&only_with_tag=CURRENT&content-type=text/plain";
sha256 = "0m6min9cbj71kvp0kxkxdq8dx2dwm3dj0rd5sjz5xdl13ihaj5hy";
})
];
# Lots of patches from Gentoo, in particular splash screen support
# (not the fancy SUSE gfxmenu stuff though). Also a fix for boot
# failures on systems with more than 2 GiB RAM.
gentooPatches = fetchurl {
url = mirror://gentoo/distfiles/grub-0.97-patches-1.4.tar.bz2;
sha256 = "1nki5q1b61ahxcmnw6mq7b8ghcysri4lj7q6dx8iqixrvrpxj399";
};
# Autoconf/automake required for the splashimage patch.
buildInputs = [autoconf automake];
preConfigure = ''
unpackFile $gentooPatches
for i in patch/*.patch; do
echo "applying patch $i"
patch -p1 < $i || patch -p0 < $i
done
autoreconf
'';
}
+7
View File
@@ -0,0 +1,7 @@
source $stdenv/setup
tar xfvz $src
cd mc-*
./configure --prefix=$out --with-screen=ncurses
make
make install
+11
View File
@@ -0,0 +1,11 @@
{stdenv, fetchurl, pkgconfig, glib, ncurses, libX11}:
stdenv.mkDerivation {
name = "mc-4.6.1";
src = fetchurl {
url = http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-4.6.1.tar.gz;
md5 = "18b20db6e40480a53bac2870c56fc3c4";
};
buildInputs = [pkgconfig glib ncurses libX11];
builder = ./builder.sh;
}
+3 -2
View File
@@ -1,5 +1,5 @@
args : with args;
with builderDefs {
let localDefs = builderDefs {
src = /* put a fetchurl here */
fetchcvs {
url = ":pserver:anonymous@relfs.cvs.sourceforge.net:/cvsroot/relfs";
@@ -12,6 +12,7 @@ args : with args;
e2fsprogs gnomevfs pkgconfig GConf];
configureFlags = [];
} null; /* null is a terminator for sumArgs */
in with localDefs;
let build = FullDepEntry ("
cd deps
sed -e 's/^CPP/#&/ ; s/^# CPP=gcc/CPP=gcc/' -i Makefile.camlidl
@@ -41,7 +42,7 @@ in
stdenv.mkDerivation rec {
name = "relfs-"+version;
builder = writeScript (name + "-builder")
(textClosure [build doMakeInstall doForceShare doPropagate]);
(textClosure localDefs [build doMakeInstall doForceShare doPropagate]);
meta = {
description = "
Relational FS over FUSE.