* Adde xpra. Doesn't quite work yet.

* Removed python_alts.

svn path=/nixpkgs/trunk/; revision=11161
This commit is contained in:
Eelco Dolstra 2008-03-17 13:45:50 +00:00
parent a47057c615
commit 26a152653d
9 changed files with 114 additions and 37 deletions

View File

@ -0,0 +1,26 @@
args: with args;
let
localDefs = builderDefs {
src = fetchurl {
url = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-0.9.5.1.1.tar.gz;
sha256 = "0lxxvn4mjfb83swcbqb5908q4iy53w4ip5i0f9angm2va1jyhd3z";
};
buildInputs = [python];
} null; /* null is a terminator for sumArgs */
in with localDefs;
stdenv.mkDerivation rec {
name = "pyrex-0.9.5.1.1";
builder = writeScript (name + "-builder")
(textClosure localDefs [installPythonPackage doForceShare]);
meta = {
description = "Python package compiler or something like that";
inherit src;
};
}

View File

@ -1,22 +1,26 @@
args : with args;
let localDefs = builderDefs {
src = /* put a fetchurl here */
fetchurl {
url = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-0.9.6.tar.gz;
sha256 = "1i0mrv2a3ihnj5mjf07aic7nlps9qap57j477m8ajwhhwx9vwlxy";
};
buildInputs = [python];
configureFlags = [];
} null; /* null is a terminator for sumArgs */
in with localDefs;
args: with args;
let
localDefs = builderDefs {
src = fetchurl {
url = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-0.9.6.4.tar.gz;
sha256 = "18pd9f8al3l6i27cc0ddhgg7hxf28lnfs75x4a8jzscydxgiq5a8";
};
buildInputs = [python];
} null; /* null is a terminator for sumArgs */
in with localDefs;
stdenv.mkDerivation rec {
name = "Pyrex-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs [installPythonPackage doForceShare]);
meta = {
description = "
Python package compiler or something like that.
";
inherit src;
};
name = "pyrex-0.9.6.4";
builder = writeScript (name + "-builder")
(textClosure localDefs [installPythonPackage doForceShare]);
meta = {
description = "Python package compiler or something like that";
inherit src;
};
}

View File

@ -1,6 +0,0 @@
args:
args.stdenv.lib.listOfListsToAttrs [
[ "default" (import ./2.4.nix args) ]
[ "2.4" (import ./2.4.nix args) ]
[ "2.5" (import ./2.5 args) ]
]

View File

@ -2,12 +2,13 @@
stdenv.mkDerivation {
name = "pygtk-2.10.4";
# builder = ./builder.sh;
src = fetchurl {
url = http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.10/pygtk-2.10.4.tar.bz2;
sha256 = "1xg8vng42lql29aa5ryva8icc8dwdc7h2y3yn96qjdgl394d96mb";
};
buildInputs = [python pkgconfig glib gtk pycairo];
buildInputs = [python pkgconfig glib gtk];
propagatedBuildInputs = [pygobject];
propagatedBuildInputs = [pygobject pycairo];
}

View File

@ -0,0 +1,39 @@
{stdenv, fetchurl, pkgconfig, python, pyrex, pygtk, xlibs, gtk, makeWrapper}:
stdenv.mkDerivation {
name = "xpra-0.0.3";
src = fetchurl {
url = http://partiwm.org/static/downloads/parti-all-0.0.3.tar.gz;
sha256 = "17inksd4cc7mba2vfs17gz1yk3h6x6wf06pm3hcbs5scq8rr5bkp";
};
#src = /home/eelco/Dev/nixpkgs/parti-all-0.0.3;
buildInputs = [
pkgconfig python pyrex pygtk gtk makeWrapper
xlibs.inputproto xlibs.libXcomposite xlibs.libXdamage xlibs.libXtst
];
buildPhase = ''
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gtk+-2.0) $(pkg-config --cflags pygtk-2.0)"
NIX_LDFLAGS="$NIX_LDFLAGS -lXcomposite -lXdamage"
./do-build
'';
installPhase = ''
ensureDir $out
cp -r install/* $out
for i in $(cd $out/bin && ls); do
wrapProgram $out/bin/$i \
--set PYTHONPATH "$out/lib/python:$(toPythonPath ${pygtk})/gtk-2.0:$PYTHONPATH" \
--prefix PATH : "${xlibs.xauth}/bin:${xlibs.xorgserver}/bin:${xlibs.xmodmap}/bin"
done
'';
meta = {
homepage = http://partiwm.org/wiki/xpra;
description = "Persistent remote applications for X";
};
}

View File

@ -1703,18 +1703,25 @@ rec {
flags = [ "xdebug" "mysql" "mysqli" "pdo_mysql" "libxml2" "apxs2" ];
};
python = getVersion "python" python_alts;
python = python24;
python_alts = import ../development/interpreters/python {
python24 = import ../development/interpreters/python/2.4 {
inherit fetchurl stdenv zlib bzip2;
};
pyrexFun = lib.sumArgs (selectVersion ../development/interpreters/pyrex "0.9.6") {
inherit fetchurl stdenv stringsWithDeps lib builderDefs;
python = builtins.getAttr "2.5" python_alts;
python25 = import ../development/interpreters/python/2.5 {
inherit fetchurl stdenv zlib bzip2;
};
pyrex = pyrexFun null;
pyrex = pyrex095;
pyrex095 = import ../development/interpreters/pyrex/0.9.5.nix {
inherit fetchurl stdenv stringsWithDeps lib builderDefs python;
};
pyrex096 = import ../development/interpreters/pyrex/0.9.6.nix {
inherit fetchurl stdenv stringsWithDeps lib builderDefs python;
};
QiFun = lib.sumArgs (selectVersion ../development/compilers/qi "9.1") {
inherit clisp stdenv fetchurl builderDefs unzip;
@ -4684,7 +4691,7 @@ rec {
inherit stdenv cmake mesa gettext freetype SDL libtiff fetchurl glibc scons x11 lib
libjpeg libpng zlib /* smpeg sdl */;
inherit (xlibs) inputproto libXi;
python = builtins.getAttr "2.5" python_alts;
python = python25;
freealut = freealut_soft;
openal = openalSoft;
openexr = openexr_1_4_0;
@ -5334,7 +5341,7 @@ rec {
pythonmagick = import ../applications/graphics/PythonMagick {
inherit fetchurl stdenv pkgconfig imagemagick boost;
python = builtins.getAttr "2.5" python_alts;
python = python25;
};
qemuFun = lib.sumArgs (selectVersion ../applications/virtualization/qemu "0.9.1") {
@ -5684,6 +5691,12 @@ rec {
base14Fonts = "${ghostscript}/share/ghostscript/fonts";
};
xpra = import ../tools/X11/xpra {
inherit stdenv fetchurl pkgconfig python pygtk xlibs makeWrapper;
inherit (gtkLibs) gtk;
pyrex = pyrex095;
};
xscreensaverFun = lib.sumArgs (selectVersion ../applications/graphics/xscreensaver "5.04") {
inherit stdenv fetchurl builderDefs lib pkgconfig bc perl intltool;
inherit (xlibs) libX11 libXmu;