* Merged most of the stdenv-updates branch. Some stuff didn't

merge cleanly right away (kde-4, kernel stuff) so it should be
  merged later.  But the stdenv stuff is all there.

svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10793
This commit is contained in:
211 changed files with 1399 additions and 4020 deletions

View File

@@ -1,9 +1,15 @@
{stdenv, fetchurl}:
args: with args;
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "a52dec-0.7.4";
src = fetchurl {
url = http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz;
md5 = "caa9f5bc44232dc8aeea773fea56be80";
url = "${meta.homepage}/files/a52dec-0.7.4.tar.gz";
sha256 = "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2";
};
configureFlags = "--enable-shared --disable-static";
meta = {
homepage = http://liba52.sourceforge.net;
};
}

View File

@@ -6,6 +6,7 @@ stdenv.mkDerivation {
url = http://losser.st-lab.cs.uu.nl/~eelco/dist/aterm-2.4.2-fixes-r2.tar.bz2;
sha256 = "1w3bxdpc2hz29li5ssmdcz3x0fn47r7g62ns0v8nazxwf40vff4j";
};
doCheck = true;
meta = {
homepage = http://www.cwi.nl/htbin/sen1/twiki/bin/view/SEN1/ATerm;
license = "LGPL";

View File

@@ -0,0 +1,2 @@
args:
import ./common.nix "0q954lwhr6xnv7chhi4bqlmkn4nx9shyw0mbdr3n26018dgw65yq" args

View File

@@ -0,0 +1,2 @@
args:
import ./common.nix "0lnxzsdhihb3kjwd3vcrl9pq6ykfbp0vy9ja0mch01ffnrqgiilx" args

View File

@@ -0,0 +1,18 @@
sha256: args: with args;
stdenv.mkDerivation rec {
name = "avahi-" + version;
src = fetchurl {
url = "${meta.homepage}/download/${name}.tar.gz";
inherit sha256;
};
buildInputs = [pkgconfig libdaemon dbus perl perlXMLParser glib qt4];
configureFlags = "--disable-qt3 --disable-gdbm --disable-gtk --disable-mono
--with-distro=none --enable-shared --disable-static --disable-python";
meta = {
homepage = http://avahi.org;
};
}

View File

@@ -1,14 +0,0 @@
{stdenv, fetchurl, pkgconfig, libdaemon, dbus}:
stdenv.mkDerivation {
name = "avahi-0.6.21";
src = fetchurl {
url = http://avahi.org/download/avahi-0.6.21.tar.gz;
sha256 = "d817c35f43011861476eab02eea14edd123b2bc58b4408d9d9b69b0c39252561";
};
#buildInputs = [pkgconfig glib gtk libpng libglade];
buildInputs = [pkgconfig libdaemon dbus];
configureFlags = "--disable-glib --disable-qt3 --disable-qt4 --disable-gtk --disable-expat --disable-gdbm --disable-python --disable-mono --with-distro=none CPPFLAGS=-Ddbus_watch_get_unix_fd=dbus_watch_get_fd";
}

View File

@@ -10,5 +10,6 @@ stdenv.mkDerivation {
preConfigure="
sed -e 's@^BJAM_CONFIG=\"\"@BJAM_CONFIG=\"--layout=system release threading=multi link=shared\"@g' -i configure
";
patches = [./gcc-4.2.patch];
configureFlags="--with-icu=${icu}";
}

View File

@@ -0,0 +1,11 @@
Index: trunk/tools/jam/src/build.jam
===================================================================
--- trunk/tools/jam/src/build.jam (revision 40095)
+++ trunk/tools/jam/src/build.jam (revision 41036)
@@ -176,5 +176,5 @@
## GCC 2.x, 3.x, 4.x
toolset gcc gcc : "-o " : -D
- : -pedantic
+ : -pedantic -fno-strict-aliasing
[ opt --release : [ opt --symbols : -g : -s ] -O3 ]
[ opt --debug : -g -O0 -fno-inline ]

View File

@@ -0,0 +1,15 @@
args: with args;
stdenv.mkDerivation rec {
name = "cairomm-1.4.6";
src = fetchurl {
url = "http://cairographics.org/releases/${name}.tar.gz";
sha256 = "1zd5pq5jd507w1v994awpsl7m26g4dfl0rwgrxig2823hl3rqmrp";
};
buildInputs = [pkgconfig];
propagatedBuildInputs = [cairo x11 fontconfig freetype];
configureFlags = "--enable-shared --disable-static";
}

View File

@@ -6,9 +6,10 @@ stdenv.mkDerivation rec {
url = "${meta.homepage}/releases/dbus-glib/${name}.tar.gz";
sha256 = "1qmbnd9xgg7vahlfywd8sfd9yqhx8jdyczz3cshfsd4qc76xhw78";
};
inherit dbus glib;
buildInputs = [pkgconfig gettext glib expat];
propagatedBuildInputs = [dbus];
buildInputs = [pkgconfig expat gettext];
propagatedBuildInputs = [dbus.libs glib];
configureFlags = "--enable-shared --disable-static";
passthru = { inherit dbus glib; };
meta = {
homepage = http://dbus.freedesktop.org;

View File

@@ -1,22 +1,42 @@
{stdenv, fetchurl, pkgconfig, expat}:
stdenv.mkDerivation {
name = "dbus-1.0.2";
args: with args;
let
version = "1.0.2";
src = fetchurl {
url = http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz;
url = "http://dbus.freedesktop.org/releases/dbus/dbus-${version}.tar.gz";
sha256 = "1jn652zb81mczsx4rdcwrrzj3lfhx9d107zjfnasc4l5yljl204a";
};
buildInputs = [pkgconfig expat];
configureFlags = "--without-x --localstatedir=/var";
configureFlags = "--disable-static --localstatedir=/var --with-session-socket-dir=/tmp";
in rec {
libs = stdenv.mkDerivation {
name = "dbus-library-" + version;
buildInputs = [pkgconfig expat];
inherit src configureFlags;
patchPhase = ''
sed -i /mkinstalldirs.*localstatedir/d bus/Makefile.in
sed -i '/SUBDIRS/s/ tools//' Makefile.in
'';
};
# Awful hack: `make install' wants to write in /var, but it
# can't. So redirect it with a DESTDIR.
preInstall = "
installFlagsArray=(DESTDIR=$out/destdir)
";
tools = stdenv.mkDerivation {
name = "dbus-tools-" + version;
inherit src configureFlags;
buildInputs = [pkgconfig expat libs]
++ (if useX11 then [libX11 libICE libSM] else []);
postConfigure = "cd tools";
postInstall = "
mv $out/destdir/$out/* $out
rm -rf $out/destdir
";
NIX_LDFLAGS = "-ldbus-1";
makeFlags = "DBUS_DAEMONDIR=${daemon}/bin";
patchPhase = ''
sed -i 's@ $(top_builddir)/dbus/libdbus-1.la@@' tools/Makefile.in
sed -i '/mkdir.*localstate/d' tools/Makefile.in
'';
};
# I'm too lazy to separate daemon and libs now.
daemon = libs;
# FIXME TODO
# After merger it will be better to correct upstart-job instead.
outPath = daemon.outPath;
}

View File

@@ -1,13 +0,0 @@
args: with args;
stdenv.mkDerivation {
name = "dbus-1.0.2";
src = fetchurl {
url = http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz;
sha256 = "1jn652zb81mczsx4rdcwrrzj3lfhx9d107zjfnasc4l5yljl204a";
};
buildInputs = [pkgconfig expat libX11 libICE libSM];
configureFlags = "--with-x --disable-static --localstatedir=/var --with-session-socket-dir=/tmp";
patchPhase = "sed -e /mkinstalldirs.*localstatedir/d -i bus/Makefile.in";
}

View File

@@ -0,0 +1,14 @@
args: with args;
stdenv.mkDerivation rec {
name = "enchant-" + version;
src = fetchurl {
url = "http://www.abisource.com/downloads/enchant/${version}/${name}.tar.gz";
sha256 = "1vwqwsadnp4rf8wj7d4rglvszjzlcli0jyxh06h8inka1sm1al76";
};
buildInputs = [aspell pkgconfig glib];
configureFlags = "--enable-shared --disable-static";
meta = {
homepage = http://www.abisource.com/enchant;
};
}

View File

@@ -1,10 +0,0 @@
args: with args;
stdenv.mkDerivation {
name = "enchant-1.3.0";
src = fetchurl {
url = http://FIXME/enchant-1.3.0.tar.gz;
sha256 = "1vwqwsadnp4rf8wj7d4rglvszjzlcli0jyxh06h8inka1sm1al76";
};
buildInputs = [aspell pkgconfig glib];
configureFlags = "--enable-shared --disable-static";
}

View File

@@ -9,4 +9,5 @@ stdenv.mkDerivation {
};
buildInputs = [x11 mesa];
patches = ./freeglut-gcc-4.2.patch;
}

View File

@@ -0,0 +1,13 @@
diff -urN freeglut-2.4.0.old/src/freeglut_joystick.c freeglut-2.4.0/src/freeglut_joystick.c
--- freeglut-2.4.0.old/src/freeglut_joystick.c 2007-06-16 03:51:41.000000000 +0000
+++ freeglut-2.4.0/src/freeglut_joystick.c 2007-06-16 03:54:27.000000000 +0000
@@ -1682,9 +1682,6 @@
fgInitialiseJoysticks ();
- if ( !fgJoystick )
- return 0;
-
if ( !fgState.JoysticksInitialised )
return 0;

View File

@@ -1,8 +0,0 @@
args:
args.stdenv.lib.listOfListsToAttrs [
[ "recurseForDerivations" true ]
[ "0.14.6" (import ./0.14.6.nix args) ]
[ "0.15" (import ./0.15.nix args) ]
[ "0.16.x" (import ./0.16.x.nix args) ]
[ "default" (import ./0.14.6.nix args) ]
]

View File

@@ -12,10 +12,18 @@ preConfigure=preConfigure
preConfigure() {
for i in configure io/ftwtest-sh; do
substituteInPlace "$i" \
--replace "@PWD@" "pwd"
# Can't use substituteInPlace here because replace hasn't been
# built yet in the bootstrap.
sed -i "$i" -e "s^/bin/pwd^$PWD_P^g"
done
# In the glibc 2.6/2.7 tarballs C-translit.h is a little bit older
# than C-translit.h.in, forcing Make to rebuild it unnecessarily.
# This wouldn't be problem except that it requires Perl, which we
# don't want as a dependency in the Nixpkgs bootstrap. So force
# the output file to be newer.
touch locale/C-translit.h
mkdir ../build
cd ../build

View File

@@ -1,31 +1,32 @@
{ stdenv, fetchurl, kernelHeaders
,perl
{ stdenv, fetchurl, kernelHeaders
, installLocales ? true
, profilingLibraries ? false
}:
stdenv.mkDerivation {
name = "glibc-2.6.1-nptl";
name = "glibc-2.7";
builder = ./builder.sh;
src =
fetchurl {
url = http://ftp.gnu.org/gnu/glibc/glibc-2.6.1.tar.bz2;
sha256 = "08pcfsi9zpikjakljklks2ln3hn7544cr9br4kbh5kx27cy3mv9x";
};
patches = [ ./glibc-pwd.patch ./glibc-getcwd-param-MAX.patch ];
src = fetchurl {
url = mirror://gnu/glibc/glibc-2.7.tar.bz2;
sha256 = "06j5q20l11x8kcrl9bg15xgb1pw0w82pazikxf4zvq2fmhiaa922";
};
inherit kernelHeaders installLocales;
inherit (stdenv) is64bit;
buildInputs=[perl];
# `--with-tls --without-__thread' enables support for TLS but causes
# it not to be used. Required if we don't want to barf on 2.4
# kernels. Or something.
configureFlags="--enable-add-ons
--with-headers=${kernelHeaders}/include
${if profilingLibraries then "--enable-profile" else "--disable-profile"}";
# Workaround for this bug:
# http://sourceware.org/bugzilla/show_bug.cgi?id=411
# I.e. when gcc is compiled with --with-arch=i686, then the
# preprocessor symbol `__i686' will be defined to `1'. This causes
# the symbol __i686.get_pc_thunk.dx to be mangled.
NIX_CFLAGS_COMPILE = "-U__i686";
}

View File

@@ -1,26 +0,0 @@
{ xineramaSupport ? false
, stdenv, fetchurl, pkgconfig, gettext, perl, x11
, libtiff, libjpeg, libpng, cairo, libXinerama ? null, libXrandr
}:
rec {
glib = (import ./glib) {
inherit fetchurl stdenv pkgconfig gettext perl;
};
atk = (import ./atk) {
inherit fetchurl stdenv pkgconfig glib perl;
};
pango = (import ./pango) {
inherit fetchurl stdenv pkgconfig glib x11 cairo libpng;
};
gtk = (import ./gtk+) {
inherit fetchurl stdenv pkgconfig glib atk pango perl
libtiff libjpeg libpng x11 cairo libXinerama
xineramaSupport libXrandr;
};
}

View File

@@ -1,22 +0,0 @@
{ xineramaSupport ? false
, stdenv, fetchurl, pkgconfig, x11, glib, atk
, pango, perl, libtiff, libjpeg, libpng, cairo, libXinerama ? null, libXrandr
}:
assert x11.buildClientLibs;
assert xineramaSupport -> libXinerama != null;
stdenv.mkDerivation {
name = "gtk+-2.10.14";
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.10/gtk+-2.10.14.tar.bz2;
sha256 = "1qjdx9kdc533dajdy1kv3ssxzh7gz7j7vzgw0ax910q4klil88yh";
};
buildInputs = [
pkgconfig perl libtiff libjpeg libpng cairo libXrandr
(if xineramaSupport then libXinerama else null)
];
propagatedBuildInputs = [x11 glib atk pango];
inherit libtiff libjpeg libpng;
}

View File

@@ -1,13 +0,0 @@
{stdenv, fetchurl, pkgconfig, glib, perl}:
assert pkgconfig != null && glib != null && perl != null;
stdenv.mkDerivation {
name = "atk-1.2.4";
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.2/atk-1.2.4.tar.bz2;
md5 = "2d6d50df31abe0e8892b5d3e7676a02d";
};
buildInputs = [pkgconfig perl];
propagatedBuildInputs = [glib];
}

View File

@@ -1,12 +0,0 @@
{stdenv, fetchurl, pkgconfig, gettext, perl}:
assert pkgconfig != null && gettext != null && perl != null;
stdenv.mkDerivation {
name = "glib-2.2.3";
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.2/glib-2.2.3.tar.bz2;
md5 = "aa214a10d873b68ddd67cd9de2ccae55";
};
buildInputs = [pkgconfig gettext perl];
}

View File

@@ -1,21 +0,0 @@
{ stdenv, fetchurl, pkgconfig, x11, glib, atk
, pango, perl, libtiff, libjpeg, libpng}:
assert pkgconfig != null && x11 != null && glib != null && atk != null
&& pango != null && perl != null && perl != null && libtiff != null
&& libjpeg != null && libpng != null;
assert x11.buildClientLibs;
#assert glib == atk.glib;
#assert glib == pango.glib;
#assert x11 == pango.x11;
stdenv.mkDerivation {
name = "gtk+-2.2.4";
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.2/gtk+-2.2.4.tar.bz2;
md5 = "605332199533e73bc6eec481fb4f1671";
};
buildInputs = [pkgconfig perl libtiff libjpeg libpng];
propagatedBuildInputs = [x11 glib atk pango];
inherit libtiff libjpeg libpng;
}

View File

@@ -1,14 +0,0 @@
{stdenv, fetchurl, pkgconfig, x11, glib}:
assert pkgconfig != null && x11 != null && glib != null;
assert x11.buildClientLibs;
stdenv.mkDerivation {
name = "pango-1.2.5";
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.2/pango-1.2.5.tar.bz2;
md5 = "df00fe3e71cd297010f24f439b6c8ee6";
};
buildInputs = [pkgconfig];
propagatedBuildInputs = [x11 glib];
}

View File

@@ -1,13 +0,0 @@
{stdenv, fetchurl, pkgconfig, glib, perl}:
assert pkgconfig != null && glib != null && perl != null;
stdenv.mkDerivation {
name = "atk-1.6.1";
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.4/atk-1.6.1.tar.bz2;
md5 = "f77be7e128c957bd3056c2e270b5f283";
};
buildInputs = [pkgconfig perl];
propagatedBuildInputs = [glib];
}

View File

@@ -1,23 +0,0 @@
{ stdenv, fetchurl, pkgconfig, gettext, perl, x11
, libtiff, libjpeg, libpng}:
rec {
glib = (import ./glib) {
inherit fetchurl stdenv pkgconfig gettext perl;
};
atk = (import ./atk) {
inherit fetchurl stdenv pkgconfig glib perl;
};
pango = (import ./pango) {
inherit fetchurl stdenv pkgconfig glib x11;
};
gtk = (import ./gtk+) {
inherit fetchurl stdenv pkgconfig glib atk pango perl
libtiff libjpeg libpng x11;
};
}

View File

@@ -1,12 +0,0 @@
{stdenv, fetchurl, pkgconfig, gettext, perl}:
assert pkgconfig != null && gettext != null && perl != null;
stdenv.mkDerivation {
name = "glib-2.4.7";
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.4/glib-2.4.7.tar.bz2;
md5 = "eff6fec89455addf8b0dee5a19e343be";
};
buildInputs = [pkgconfig gettext perl];
}

View File

@@ -1,21 +0,0 @@
{ stdenv, fetchurl, pkgconfig, x11, glib, atk
, pango, perl, libtiff, libjpeg, libpng}:
assert pkgconfig != null && x11 != null && glib != null && atk != null
&& pango != null && perl != null && perl != null && libtiff != null
&& libjpeg != null && libpng != null;
assert x11.buildClientLibs;
#assert glib == atk.glib;
#assert glib == pango.glib;
#assert x11 == pango.x11;
stdenv.mkDerivation {
name = "gtk+-2.4.13";
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.4/gtk+-2.4.13.tar.bz2;
md5 = "3a438e1010704b11acaf060c9ba0fd7b";
};
buildInputs = [pkgconfig perl libtiff libjpeg libpng];
propagatedBuildInputs = [x11 glib atk pango];
inherit libtiff libjpeg libpng;
}

View File

@@ -1,14 +0,0 @@
{stdenv, fetchurl, pkgconfig, x11, glib}:
assert pkgconfig != null && x11 != null && glib != null;
assert x11.buildClientLibs;
stdenv.mkDerivation {
name = "pango-1.4.1";
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.4/pango-1.4.1.tar.bz2;
md5 = "39868e0da250fd4c00b2970e4eb84389";
};
buildInputs = [pkgconfig];
propagatedBuildInputs = [x11 glib];
}

View File

@@ -1,23 +0,0 @@
{ stdenv, fetchurl, pkgconfig, gettext, perl, x11
, libtiff, libjpeg, libpng}:
rec {
glib = (import ./glib) {
inherit fetchurl stdenv pkgconfig gettext perl;
};
atk = (import ./atk) {
inherit fetchurl stdenv pkgconfig glib perl;
};
pango = (import ./pango) {
inherit fetchurl stdenv pkgconfig glib x11;
};
gtk = (import ./gtk+) {
inherit fetchurl stdenv pkgconfig glib atk pango perl
libtiff libjpeg libpng x11;
};
}

View File

@@ -1,6 +1,4 @@
{stdenv, fetchurl, pkgconfig, glib, perl}:
assert pkgconfig != null && glib != null && perl != null;
args: with args;
stdenv.mkDerivation {
name = "atk-1.12.4";

View File

@@ -0,0 +1,16 @@
args: with args;
rec {
glib = (import ./glib) args;
atk = (import ./atk) (args // { inherit glib; });
pango = (import ./pango) (args // { inherit glib; });
gtk = (import ./gtk+) (args // { inherit glib atk pango; } );
glibmm = (import ./glibmm) (args // { inherit glib; });
gtkmm = (import ./gtkmm) (args // { inherit gtk atk glibmm; });
}

View File

@@ -1,6 +1,4 @@
{stdenv, fetchurl, pkgconfig, gettext, perl}:
assert pkgconfig != null && gettext != null && perl != null;
args: with args;
stdenv.mkDerivation {
name = "glib-2.12.13"; # <- sic! gtk 2.10 needs glib 2.12

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, pkgconfig, glib, libsigcxx}:
args: with args;
stdenv.mkDerivation {
name = "glibmm-2.12.10";
@@ -7,6 +7,7 @@ stdenv.mkDerivation {
sha256 = "02rjjdh0f6kafa1sn4y5ykvm4f2qn3yh4kr4lngcv7vzasqn1dr1";
};
buildInputs = [pkgconfig glib libsigcxx];
buildInputs = [pkgconfig];
propagatedBuildInputs = [glib libsigcxx];
}

View File

@@ -0,0 +1,13 @@
args: with args;
stdenv.mkDerivation {
name = "gtk+-2.10.14";
src = fetchurl {
url = ftp://ftp.gtk.org/pub/gtk/v2.10/gtk+-2.10.14.tar.bz2;
sha256 = "1qjdx9kdc533dajdy1kv3ssxzh7gz7j7vzgw0ax910q4klil88yh";
};
buildInputs = [ pkgconfig perl ];
propagatedBuildInputs = [x11 glib atk pango libtiff libjpeg libpng cairo
libXrandr (if xineramaSupport then libXinerama else null)];
passthru = { inherit libtiff libjpeg libpng; };
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gtk, atk, glibmm, libsigcxx}:
args: with args;
stdenv.mkDerivation {
name = "gtkmm-2.10.11";
@@ -7,6 +7,7 @@ stdenv.mkDerivation {
sha256 = "1bri9r0k69dmi5xgzrlfllp3adfzhz8dh9zkcvi6sjkgfwi594vx";
};
buildInputs = [pkgconfig gtk atk glibmm libsigcxx];
buildInputs = [pkgconfig];
propagatedBuildInputs = [glibmm gtk atk cairomm];
}

View File

@@ -1,6 +1,4 @@
{stdenv, fetchurl, pkgconfig, x11, glib, cairo, libpng}:
assert x11.buildClientLibs;
args: with args;
stdenv.mkDerivation {
name = "pango-1.14.10";
@@ -8,6 +6,6 @@ stdenv.mkDerivation {
url = ftp://ftp.gtk.org/pub/pango/1.14/pango-1.14.10.tar.bz2;
md5 = "e9fc2f8168e74e2fa0aa8238ee0e9c06";
};
buildInputs = [pkgconfig libpng];
propagatedBuildInputs = [x11 glib cairo];
buildInputs = [pkgconfig];
propagatedBuildInputs = [x11 glib cairo libpng];
}

View File

@@ -0,0 +1,17 @@
args: with args;
stdenv.mkDerivation {
name = "ilbc-rfc3951";
# I'm too lazy to extract .c source from rfc3951. So, I'm using autotools stuff
# from linphone project
src = stdenv.mkDerivation {
name = "ilbc-rfc3951.tar.gz";
src = msilbc.src;
outputHashAlgo = "sha256";
outputHash = "0f6scsp72bz2ifscd8c0x57ipcxi2i4a9b4nwlnwx7a7a0hrazhj";
phases = "unpackPhase installPhase";
installPhase = "cp ilbc-rfc3951.tar.gz \${out}";
};
configureFlags = "--enable-shared --disable-static";
}

View File

@@ -0,0 +1,2 @@
args:
import ./common.nix "1iq5hs4hbqyl6sqiqlaj3j89vpfqx6zv974c965nxjvmwy816dbz" args

View File

@@ -0,0 +1,2 @@
args:
import ./common.nix "133kxx1wfangrhy6rcpqlqib7i45qxj8pcp3i9n574cwfx41swy4" args

View File

@@ -0,0 +1,18 @@
sha256: args: with args;
stdenv.mkDerivation rec {
name = "libarchive-" + version;
src = fetchurl {
url = "${meta.homepage}/src/${name}.tar.gz";
inherit sha256;
};
propagatedBuildInputs = [zlib bzip2 e2fsprogs];
buildInputs = [sharutils];
configureFlags = "--enable-shared --disable-static";
meta = {
description = "A library for reading and writing streaming archives";
homepage = http://people.freebsd.org/~kientzle/libarchive;
};
}

View File

@@ -1,15 +0,0 @@
args: with args;
stdenv.mkDerivation rec {
name = "libarchive-2.4.11";
src = fetchurl {
url = "http://FIXME_dont_remember/${name}.tar.gz";
sha256 = "1iq5hs4hbqyl6sqiqlaj3j89vpfqx6zv974c965nxjvmwy816dbz";
};
buildInputs = [zlib];
meta = {
description = "A library for reading and writing streaming archives";
};
}

View File

@@ -7,7 +7,8 @@ stdenv.mkDerivation {
sha256 = "19i40i3722ilhziknfds3a6w5xzv66fvc68gvbir1p2fvwi6ij93";
};
buildInputs = [pkgconfig libraw1394];
buildInputs = [pkgconfig];
propagatedBuildInputs = [libraw1394];
meta = {
description = "programming interface for the 1394 Trade Association AV/C (Audio/Video Control) Digital Interface Command Set";

View File

@@ -1,17 +1,18 @@
args: with args;
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "libiec61883-1.1.0";
src = fetchurl {
url = http://www.linux1394.org/dl/libiec61883-1.1.0.tar.gz;
url = "${meta.homepage}/dl/${name}.tar.gz";
sha256 = "09f0ca7bp6lqlz6601gnyl04mfabv0azg49n1cmjyqpzh35cgxkq";
};
buildInputs = [pkgconfig libraw1394];
buildInputs = [pkgconfig];
propagatedBuildInputs = [libraw1394];
meta = {
description = "TODO";
homepage = http://www.linux1394.org/;
homepage = http://www.linux1394.org;
license = "LGPL";
};
}

View File

@@ -0,0 +1,10 @@
args: with args;
stdenv.mkDerivation rec {
name = "libjingle-" + version;
src = fetchurl {
url = "mirror://sf/tapioca-voip/${name}.tar.gz";
sha256 = "1x5l2jwxpkyxvnq0cagq40p6x61v23vxngnnsxr15lyh1zwzk1yj";
};
propagatedBuildInputs = [ mediastreamer ];
}

View File

@@ -0,0 +1,10 @@
args: with args;
stdenv.mkDerivation rec {
name = "libjingle-" + version;
src = fetchurl {
url = "mirror://sf/libjingle/${name}.tar.gz";
sha256 = "0izg1i4nmhysvkqmsl2xqp0x6lwz2jjyavvhv196hsdsr2w0iwvi";
};
}

View File

@@ -1,7 +1,4 @@
{ stdenv, fetchurl
, pkgconfig, dbus, dbus_glib
, gtk, glib
}:
args: with args;
stdenv.mkDerivation {
name = "libnotify-0.4.4";
@@ -13,7 +10,7 @@ stdenv.mkDerivation {
};
buildInputs = [
pkgconfig dbus dbus_glib gtk glib
pkgconfig dbus.libs dbus_glib gtk glib
];
configureFlags="";

View File

@@ -1,15 +1,15 @@
args: with args;
stdenv.mkDerivation {
name = "libraw1394-1.2.0";
stdenv.mkDerivation rec {
name = "libraw1394-1.3.0";
src = fetchurl {
url = "mirror://sourceforge/libraw1394/libraw1394-1.2.0.tar.gz";
sha256 = "1b9zqqzyz0ihyfvhn135y3wc6vmym5yz21jxj9dp0f09b96gmp0z";
url = "${meta.homepage}/dl/${name}.tar.gz";
sha256 = "035mrca9fhg4kq8r1s5yjgzg3vrn1nc3ndy13yg3chhqgx4dzzr0";
};
meta = {
description = "library providing direct access to the IEEE 1394 bus through the Linux 1394 subsystem's raw1394 user space interface";
homepage = "http://wiki.linux1394.org/";
homepage = "http://www.linux1394.org";
license = ["GPL" "LGPL"];
};
}

View File

@@ -0,0 +1,14 @@
args: with args;
stdenv.mkDerivation rec {
name = "libsigsegv-" + version;
src = fetchurl {
url = "mirror://gnu/libsigsegv/${name}.tar.gz";
sha256 = "0fvcsq9msi63vrbpvks6mqkrnls5cfy6bzww063sqhk2h49vsyyg";
};
meta = {
homepage = http://libsigsegv.sf.net;
description = "A library for handling page faults in user mode";
};
}

View File

@@ -1,9 +0,0 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "libsigsegv-2.1";
src = fetchurl {
url = mirror://gnu/libsigsegv/libsigsegv-2.1.tar.gz;
md5 = "6d75ca3fede5fbfd72a78bc918d9e174";
};
}

View File

@@ -0,0 +1,21 @@
args: with args;
stdenv.mkDerivation rec {
name = "libxklavier-" + version;
src = fetchurl {
url = "mirror://sf/gswitchit/${name}.tar.gz";
sha256 = "07pq74ygmnr3vgfp86dbjnqsp3v67fww6d3a1vqbif9wzbk70195";
};
# TODO: enable xmodmap support, needs xmodmap DB
propagatedBuildInputs = [libX11 xkeyboard_config libxml2 libICE glib libxkbfile];
buildInputs = [pkgconfig];
configureFlags = "--enable-shared --disable-static
--with-xkb-base=${xkeyboard_config}/etc/X11/xkb
--disable-xmodmap-support";
meta = {
homepage = http://freedesktop.org/wiki/Software/LibXklavier;
};
}

View File

@@ -6,6 +6,6 @@ stdenv.mkDerivation {
url = http://archive.apache.org/dist/logging/log4cxx/log4cxx-0.9.7.tar.gz;
sha256 = "1ikyxd8jgf7b2cqjk5lidl7cffs114iiblaczaqbv5bm4vyb4hav";
};
buildInputs = [ autoconf automake libtool libxml2 cppunit ];
buildInputs = [ autoconf automake libtool libxml2 cppunit boost ];
patchPhase = "sh autogen.sh; sed -e 's/DOMConfigurator::subst/subst/' -i include/log4cxx/xml/domconfigurator.h";
}

View File

@@ -0,0 +1,22 @@
args: with args;
stdenv.mkDerivation rec {
name = "mediastreamer2-" + version;
# This url is not related to mediastreamer. fetchcvs doesn't work on my laptop,
# so I've created cvs snapshot and put it to my server.
src = fetchurl {
url = "http://www.loegria.net/misc/" + name + ".tar.bz2";
sha256 = "1nmvyqh4x3nsw4qbj754jwagj9ia183kvp8valdr7m44my0sw5p1";
};
buildInputs = [automake libtool autoconf pkgconfig];
propagatedBuildInputs = [alsaLib ffmpeg speex ortp];
preConfigure = "./autogen.sh";
patches = [ ./h264.patch ./plugins.patch ];
configureFlags = "--enable-external-ortp --enable-shared --disable-static";
}

View File

@@ -0,0 +1,12 @@
diff --git a/tests/mediastream.c b/tests/mediastream.c
index 12e1605..cdc8cd1 100644
--- a/tests/mediastream.c
+++ b/tests/mediastream.c
@@ -144,7 +144,6 @@ int main(int argc, char * argv[])
rtp_profile_set_payload(&av_profile,97,&payload_type_theora);
rtp_profile_set_payload(&av_profile,99,&payload_type_mp4v);
rtp_profile_set_payload(&av_profile,100,&payload_type_x_snow);
- rtp_profile_set_payload(&av_profile,102,&payload_type_h264);
#endif
if (argc<4) {
printf(usage);

View File

@@ -0,0 +1,49 @@
diff --git a/src/mscommon.c b/src/mscommon.c
index 1a12b2f..2399444 100644
--- a/src/mscommon.c
+++ b/src/mscommon.c
@@ -428,6 +428,7 @@ static MSSndCardDesc * ms_snd_card_descs[]={
void ms_init(){
int i;
MSSndCardManager *cm;
+ char *ms_plugin_path;
#ifdef __APPLE__
NSApplicationLoad();
@@ -451,7 +452,35 @@ void ms_init(){
}
ms_message("Loading plugins");
- ms_load_plugins(PACKAGE_PLUGINS_DIR);
+ ms_plugin_path = getenv("MS_PLUGIN_PATH");
+ do
+ {
+ if (!ms_plugin_path)
+ {
+ ms_load_plugins(PACKAGE_PLUGINS_DIR);
+ break;
+ }
+ char *dup_plugins_path = strdup (ms_plugin_path);
+ char *cur_plugins_dir = dup_plugins_path;
+ if (!dup_plugins_path)
+ {
+ ms_message("Failed to duplicate plugins path, not loading plugins");
+ break;
+ }
+ while (1)
+ {
+ char *next_delimiter = strchr(cur_plugins_dir, ":");
+ if (next_delimiter)
+ next_delimiter[0] = '\0';
+ ms_load_plugins(cur_plugins_dir);
+ if (!next_delimiter)
+ break;
+ cur_plugins_dir = next_delimiter + 1;
+ }
+ free(dup_plugins_path);
+ }
+ while (0);
+
ms_message("ms_init() done");
}

View File

@@ -0,0 +1,24 @@
args: with args;
stdenv.mkDerivation rec {
name = "msilbc-" + version;
src = fetchurl {
url = "http://download.savannah.gnu.org/releases/linphone/plugins/sources/${name}.tar.gz";
sha256 = "0ifydb7qmpync56l4hbrp36n5wrb7gadb76isp643s6wsg7l743j";
};
patchPhase = "sed -i /MS_FILTER_SET_FMTP/d ilbc.c";
propagatedBuildInputs = [ilbc mediastreamer];
buildInputs = [pkgconfig];
buildPhase = ''
cc -fPIC -c -pthread -o ilbc.o ilbc.c `pkg-config --cflags mediastreamer`
echo "next"
cc `pkg-config --libs mediastreamer` -shared -pthread -o libilbc.so
'';
installPhase = "
ensureDir \${out}/lib/mediastreamer/plugins
cp libilbc.so \${out}/lib/mediastreamer/plugins
";
}

View File

@@ -1,11 +1,9 @@
args: with args;
stdenv.mkDerivation rec {
name = "ortp-0.13.1";
name = "ortp-" + version;
src = fetchurl {
url =
"http://download.savannah.nongnu.org/releases/linphone/ortp/sources/${name}.tar.gz";
url = "mirror://savannah/linphone/ortp/sources/${name}.tar.gz";
sha256 = "0k2963v4b15xnf4cpkpgjhsb8ckxpf6vdr8dnw7z3mzilji7391b";
};
@@ -13,6 +11,6 @@ stdenv.mkDerivation rec {
meta = {
description = "a Real-Time Transport Protocol (RFC3550) stack under LGPL";
homepage = http://www.linphone.org/index.php/eng/code_review/ortp;
homepage = http://www.linphone.org/index.php/eng/code_review/ortp;
};
}

View File

@@ -0,0 +1,16 @@
args: with args;
stdenv.mkDerivation rec {
name = "ortp-" + version;
src = fetchurl {
url = "mirror://savannah/linphone/ortp/sources/${name}.tar.gz";
sha256 = "0gyl0yzfg78sjhbwnwc2g8yn4riwd1wcv183qihgan6z2d5cfbrg";
};
configureFlags = "--enable-shared --disable-static";
meta = {
description = "a Real-Time Transport Protocol (RFC3550) stack under LGPL";
homepage = http://www.linphone.org/index.php/eng/code_review/ortp;
};
}

View File

@@ -1,14 +1,14 @@
args: with args;
{stdenv, fetchurl, unicodeSupport ? false, cplusplusSupport ? true}:
stdenv.mkDerivation ({
name = "pcre-7.1";
stdenv.mkDerivation {
name = "pcre-7.4";
src = fetchurl {
url = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.1.tar.bz2;
sha256 = "0rpkcw07jas3fw6ava3ni5zcrmbncwa8xlsa0lzq6z2iph5510li";
url = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.4.tar.bz2;
sha256 = "1rdks2h5f3p2d71c4jnxaic1c9gmgsfky80djnafcdbdrhzkiyx5";
};
configureFlags =
(if unicodeSupport then
"--enable-unicode-properties --enable-shared --disable-static"
else "") +
(if !cplusplusSupport then "--disable-cpp" else "");
}
// (if unicodeSupport then
{
configureFlags = "--enable-unicode-properties --enable-shared --disable-static";
}
else {}))

View File

@@ -1,9 +0,0 @@
source $stdenv/setup
ensureDir $out/nix-support
substitute "$hook" "$out/nix-support/setup-hook" --subst-var out
# !!! TODO: -system-libmng
configureFlags="-prefix $out $configureFlags"
genericBuild

View File

@@ -4,11 +4,11 @@ rec {
setupHook = ./setup-hook.sh;
propagatedBuildInputs = [libXft libXrender libXrandr randrproto xextproto
libXinerama xineramaproto libXcursor zlib libjpeg mysql libpng which mesa
libXmu openssl dbus cups pkgconfig libXext freetype fontconfig inputproto
libXmu openssl dbus.libs cups pkgconfig libXext freetype fontconfig inputproto
fixesproto libXfixes glib libtiff];
prefixKey = "-prefix ";
configureFlags = "
-v -no-separate-debug-info -release -nomake examples -nomake demos
-v -no-separate-debug-info -release
-system-zlib -system-libpng -system-libjpeg -fast
-qt-gif -confirm-license
-opengl -xrender -xrandr -xinerama -xcursor -qt-sql-mysql
@@ -18,10 +18,10 @@ rec {
}; in
rec {
trolltech = stdenv.mkDerivation (common // {
name = "qt-4.3.1";
name = "qt-4.3.3";
src = fetchurl {
url = ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.3.1.tar.gz;
sha256 = "0qg6apy2r7jbbfinxh0v1jm08yv890r40hhmy5cysn239v3x0nad";
url = ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.3.3.tar.gz;
sha256 = "0w0mfm0wwmbj1vnjn27rza1r9wj8k47mn9ril8swprffqnn4p4w9";
};
patchPhase = common.patchPhase;
});
@@ -29,8 +29,8 @@ rec {
name = "qt-kde-4.3svn";
src = fetchsvn {
url = svn://anonsvn.kde.org/home/kde/trunk/qt-copy;
rev = "732646";
md5 = "9757de3dce16b483f2f358d287c848ee";
rev = "761061";
sha256 = "0i98kh435dj29ln1lnidxwivcha1m553s4l8c1h2b3yd4950w8x4";
};
patchPhase = "mkdir .svn; bash apply_patches;" + common.patchPhase;
});

View File

@@ -1,11 +1,12 @@
{ stdenv, fetchurl, ncurses }:
args: with args;
stdenv.mkDerivation {
name = "readline-5.2";
src = fetchurl {
url = mirror://gnu/readline/readline-5.2.tar.gz;
md5 = "e39331f32ad14009b9ff49cc10c5e751";
sha256 = "0icz4hqqq8mlkwrpczyaha94kns0am9z0mh3a2913kg2msb8vs0j";
};
propagatedBuildInputs = [ncurses];
configureFlags = "--enable-shared --disable-static";
patches = stdenv.lib.optional stdenv.isDarwin ./shobj-darwin.patch;
}

View File

@@ -4,10 +4,12 @@ stdenv.mkDerivation rec {
name = "redland-1.0.7";
src = fetchurl {
url = "sf://librdf/${name}.tar.gz";
url = "mirror://sf/librdf/${name}.tar.gz";
sha256 = "1z160hhrnlyy5c8vh2hjza6kdfmzml8mg9dk8yffifkhnxjq5r2z";
};
buildInputs = [ bdb openssl libxml2 pkgconfig perl];
configureFlags="--without-static --with-threads --with-bdb=${bdb}";
buildInputs = [pkgconfig];
propagatedBuildInputs = [ bdb openssl libxslt perl mysql postgresql sqlite
curl pcre];
configureFlags = "--disable-static --with-threads --with-bdb=${bdb}";
patchPhase="sed -e 1s@/usr@${perl}@ -i utils/touch-mtime.pl";
}

View File

@@ -1,5 +1,5 @@
args: with args;
let rev = "2031"; in
let rev = "2066"; in
stdenv.mkDerivation {
name = "tapioca-qt-r${rev}";
src = fetchsvn {

View File

@@ -9,7 +9,7 @@ stdenv.mkDerivation {
};
buildInputs = [cmake];
propagatedBuildInputs = [qt];
propagatedBuildInputs = [qt stdenv.gcc.libc];
meta = {
description = "Qt bindings for telepathy";
};