Some fixes to build elfutils and ltrace, added x11vnc, forward-ported kernel 2.6.23.16 as default.

svn path=/nixpkgs/branches/stdenv-updates/; revision=10718
This commit is contained in:
Michael Raskin 2008-02-18 07:23:05 +00:00
parent 2a087141cb
commit 96ddccf6b2
6 changed files with 80 additions and 1 deletions

View File

@ -7,4 +7,5 @@ stdenv.mkDerivation {
sha256 = "12n3h5r3c24a6l2wxz0w2dqq072bvgms0dzckivrwp5vdn22lpdv"; sha256 = "12n3h5r3c24a6l2wxz0w2dqq072bvgms0dzckivrwp5vdn22lpdv";
}; };
preBuild = "sed -e 's/-Werror//' -i */Makefile "; preBuild = "sed -e 's/-Werror//' -i */Makefile ";
dontAddDisableDepTrack = "true";
} }

View File

@ -6,4 +6,6 @@ stdenv.mkDerivation {
url = http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.131.orig.tar.gz; url = http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.131.orig.tar.gz;
sha256 = "0vqfjpcv81m3q0gsk78qykakhz9rbfwd65i4zsi03xr2lrk9ayll"; sha256 = "0vqfjpcv81m3q0gsk78qykakhz9rbfwd65i4zsi03xr2lrk9ayll";
}; };
dontAddDisableDepTrack = "true";
preBuild = "sed -e 's/-Werror//' -i */Makefile ";
} }

View File

@ -0,0 +1,39 @@
args:
(import ./meta.nix)
( args //
{
version = "2.6.23.16";
src_hash = { sha256 = "0drk3981rl5j16s6amb63lai9kpi0vf0kr6avhpd9nikj27bsa83"; };
systemPatches = [
/*{ # resume with resume=swap:/dev/xx
name = "tux on ice"; # (swsusp2)
patch = args.fetchurl {
url = "http://www.tuxonice.net/downloads/all/tuxonice-3.0-rc3-for-2.6.23.9.patch.bz2";
sha256 = "16f61cn0mdi7yklhdx4isi7c85843fzxq2cifd05cpsl6x6ilrfk";
};
extraConfig = "
CONFIG_SUSPEND2=y
CONFIG_SUSPEND2_FILE=y
CONFIG_SUSPEND2_SWAP=y
CONFIG_CRYPTO_LZF=y
";
}*/
{ name = "fbsplash-0.9.2-r5-2.6.21";
patch = args.fetchurl {
url = http://dev.gentoo.org/~dsd/genpatches/trunk/2.6.22/4200_fbsplash-0.9.2-r5.patch;
sha256 = "0822wwlf2dqsap5qslnnp0yl1nbvvvb76l73w2dd8zsyn0bqg3px";
};
extraConfig = "CONFIG_FB_SPLASH=y";
}
];
config = with args;
if config != null then config else
if userModeLinux then ./config-2.6.23-uml else
if stdenv.system == "i686-linux" then ./config-2.6.23-i686-smp else
if stdenv.system == "x86_64-linux" then ./config-2.6.23-x86_64-smp else
abort "No kernel configuration for your platform!";
}
)

View File

@ -27,5 +27,6 @@ args.stdenv.lib.listOfListsToAttrs [
[ "2.6.22-ck" (import ./2.6.22-ck.nix newArgs) ] [ "2.6.22-ck" (import ./2.6.22-ck.nix newArgs) ]
[ "2.6.23" (import ./2.6.23.nix newArgs) ] [ "2.6.23" (import ./2.6.23.nix newArgs) ]
[ "2.6.23.1" (import ./2.6.23.1.nix newArgs) ] [ "2.6.23.1" (import ./2.6.23.1.nix newArgs) ]
[ "default" (import ./2.6.23.1.nix newArgs) ] [ "2.6.23.16" (import ./2.6.23.16.nix newArgs) ]
[ "default" (import ./2.6.23.16.nix newArgs) ]
] ]

View File

@ -0,0 +1,27 @@
args : with args; with builderDefs {src="";} null;
let localDefs = builderDefs (rec {
src = /* put a fetchurl here */
fetchurl {
url = mirror://sourceforge/libvncserver/x11vnc-0.9.3.tar.gz;
sha256 = "0sfzkbqd2d94w51czci9w5j5z67amcl1gphgg6x77dyr2h46kc0a";
};
buildInputs = [libXfixes fixesproto openssl libXdamage damageproto
zlib libX11 xproto libjpeg libXtst libXinerama xineramaproto
libXrandr randrproto libXext xextproto inputproto recordproto];
configureFlags = [];
}) null; /* null is a terminator for sumArgs */
in with localDefs;
stdenv.mkDerivation rec {
name = "x11vnc-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs
[doConfigure doMakeInstall doForceShare doPropagate]);
meta = {
description = "
X11 VNC - VNC server connected to real X11 screen.
";
homepage = "http://www.karlrunge.com/x11vnc/";
};
}

View File

@ -4822,6 +4822,15 @@ rec {
++ lib.optional (supportsJDK && jrePlugin ? mozillaPlugin) jrePlugin; ++ lib.optional (supportsJDK && jrePlugin ? mozillaPlugin) jrePlugin;
}; };
x11vncFun = lib.sumArgs (selectVersion ../tools/X11/x11vnc "0.9.3") {
inherit builderDefs openssl zlib libjpeg ;
inherit (xlibs) libXfixes fixesproto libXdamage damageproto
libX11 xproto libXtst libXinerama xineramaproto libXrandr randrproto
libXext xextproto inputproto recordproto;
};
x11vnc = x11vncFun null;
xara = import ../applications/graphics/xara { xara = import ../applications/graphics/xara {
inherit fetchurl stdenv autoconf automake libtool gettext cvs wxGTK inherit fetchurl stdenv autoconf automake libtool gettext cvs wxGTK
pkgconfig libxml2 zip libpng libjpeg shebangfix perl freetype; pkgconfig libxml2 zip libpng libjpeg shebangfix perl freetype;