removed mkDerivationByConfiguration, using composableDerivation instead
qgis, vim_configurable both work now svn path=/nixpkgs/trunk/; revision=13661
This commit is contained in:
@@ -1,35 +1,47 @@
|
||||
args:
|
||||
( args.mkDerivationByConfiguration {
|
||||
flagConfig = {
|
||||
mandatory = { propagatedBuildInputs=["x11" "inputproto" "libXi"];
|
||||
blocks = ["cygwin" "quartz"]; }; # cgywin quartz and much more not yet tested
|
||||
cygwin = { cfgOption = "--enable-cygwin"; }; # use the CygWin libraries default=no
|
||||
debug = { cfgOption = "--enable-debug"; }; # turn on debugging default=no
|
||||
gl = { cfgOption = "--enable-gl"; buildInputs = [ "mesa" ]; }; # turn on OpenGL support default=yes
|
||||
shared = { cfgOption = "--enable-shared"; }; # turn on shared libraries default=no
|
||||
threads = { cfgOption = "--enable-threads"; }; # enable multi-threading support
|
||||
quartz = { cfgOption = "--enable-quartz"; buildInputs = "quartz"; }; # don't konw yet what quartz is # use Quartz instead of Quickdraw (default=no)
|
||||
largefile = { cfgOption = "--disable-largefile"; }; # omit support for large files
|
||||
useNixLibs = { implies = [ "nixjpeg" "nixpng" "nixzlib" ]; }; # use nix libraries only
|
||||
nixjpeg = { cfgOption = "--disable-localjpeg"; buildInputs = "libjpeg"; }; # use local JPEG library, default=auto
|
||||
nixzlib = { cfgOption = "--disable-localzlib"; buildInputs = "zlib"; }; # use local ZLIB library, default=auto
|
||||
nixpng = { cfgOption = "--disable-localpng"; buildInputs = "libpng"; }; # use local PNG library, default=auto
|
||||
xinerama = { cfgOption = "--enable-xinerama"; buildInputs = "xinerama"; }; # turn on Xinerama support default=no
|
||||
xft = { cfgOption = "--enable-xft"; buildInputs="xft"; }; # turn on Xft support default=no
|
||||
xdbe = { cfgOption = "--enable-xdbe"; }; # turn on Xdbe support default=no
|
||||
};
|
||||
args: with args;
|
||||
let inherit (args.composableDerivation) composableDerivation edf; in
|
||||
composableDerivation {
|
||||
initial = {
|
||||
|
||||
extraAttrs = co : {
|
||||
name = "fltk-2.0.x-r6483";
|
||||
name = "fltk-2.0.x-r6483";
|
||||
|
||||
src = args.fetchurl {
|
||||
url = ftp://ftp.easysw.com/pub/fltk/snapshots/fltk-2.0.x-r6483.tar.bz2;
|
||||
sha256 = "1n8b53r5p0zb4sbvr6pj8aasls4zjwksv1sdc3r3pzb20fikp5jb";
|
||||
};
|
||||
|
||||
meta = {
|
||||
propagatedBuildInputs=[x11 inputproto libXi freeglut];
|
||||
|
||||
buildInputs = [ args.pkgconfig ];
|
||||
|
||||
flags =
|
||||
# this could be tidied up (?).. eg why does it require freeglut without glSupport?
|
||||
edf { name = "cygwin"; } # use the CygWin libraries default=no
|
||||
// edf { name = "debug"; } # turn on debugging default=no
|
||||
// edf { name = "gl"; enable = { buildInputs = [ mesa ]; }; } # turn on OpenGL support default=yes
|
||||
// edf { name = "shared"; } # turn on shared libraries default=no
|
||||
// edf { name = "threads"; } # enable multi-threading support
|
||||
// edf { name = "quartz"; enable = { buildInputs = "quartz"; }; } # don't konw yet what quartz is # use Quartz instead of Quickdraw (default=no)
|
||||
// edf { name = "largefile"; } # omit support for large files
|
||||
// edf { name = "localjpeg"; disable = { buildInputs = [libjpeg]; }; } # use local JPEG library, default=auto
|
||||
// edf { name = "localzlib"; disable = { buildInputs = [zlib]; }; } # use local ZLIB library, default=auto
|
||||
// edf { name = "localpng"; disable = { buildInputs = [libpng]; }; } # use local PNG library, default=auto
|
||||
// edf { name = "xinerama"; enable = { buildInputs = [libXinerama]; }; } # turn on Xinerama support default=no
|
||||
// edf { name = "xft"; enable = { buildInputs=[libXft]; }; } # turn on Xft support default=no
|
||||
// edf { name = "xdbe"; }; # turn on Xdbe support default=no
|
||||
cfg = {
|
||||
largefileSupport = true; # is default
|
||||
glSupport = true; # doesn't build without it. Why?
|
||||
localjpegSupport = false;
|
||||
localzlibSupport = false;
|
||||
localpngSupport = false;
|
||||
sharedSupport = true;
|
||||
threadsSupport = true;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "a C++ cross platform lightweight gui library binding";
|
||||
homepage = http://www.fltk.org;
|
||||
};
|
||||
};
|
||||
} ) args
|
||||
}
|
||||
|
||||
@@ -1,42 +1,38 @@
|
||||
args:
|
||||
( args.mkDerivationByConfiguration {
|
||||
args: with args;
|
||||
let inherit (args.composableDerivation) composableDerivation edf; in
|
||||
composableDerivation {
|
||||
|
||||
flagConfig = {
|
||||
mandatory = { implies = "python";
|
||||
buildInputs = [ "which" ]; # which is needed for the autogen.sh
|
||||
};
|
||||
initial = {
|
||||
|
||||
buildInputs = [ "which" ]; # which is needed for the autogen.sh
|
||||
|
||||
flags =
|
||||
# python and ruby untested
|
||||
python = { cfgOption = "--enable-python"; #Enable build of python module
|
||||
buildInputs=["python"] ++ (if args.use_svn then ["libtool" "autoconf" "automake" "swig"] else []);
|
||||
};
|
||||
ruby = { cfgOption = "--enable-ruby"; }; #Enable build of ruby module
|
||||
};
|
||||
edf { name = "python"; enable = { buildInputs = [ python ]; }; };
|
||||
# (if args.use_svn then ["libtool" "autoconf" "automake" "swig"] else [])
|
||||
# // edf { name = "ruby"; enable = { buildInputs = [ ruby ]; };}
|
||||
|
||||
extraAttrs = co : {
|
||||
name = "geos-3.0.0rc4";
|
||||
name = "geos-3.0.3";
|
||||
|
||||
src = if (args.use_svn) then
|
||||
args.fetchsvn {
|
||||
url = http://svn.osgeo.org/geos/trunk;
|
||||
md5 = "b46f5ea517a337064006bab92f3090d4";
|
||||
} else args.fetchurl {
|
||||
url = http://geos.refractions.net/geos-3.0.0rc4.tar.bz2;
|
||||
sha256 = "0pgwwv8q4p234r2jwdkaxcf68z2fwgmkc74c6dnmms2sdwkb5lbw";
|
||||
};
|
||||
src = fetchurl {
|
||||
url = http://download.osgeo.org/geos/geos-3.0.3.tar.bz2;
|
||||
sha256 = "1pxk20jcbyidp3bvip1vdf8wfw2wvh8pcn810qkf1y3zfnki0c7k";
|
||||
};
|
||||
|
||||
configurePhase = "
|
||||
[ -f configure ] || \\
|
||||
LIBTOOLIZE=libtoolize ./autogen.sh
|
||||
#{ automake --add-missing; autoconf; }
|
||||
unset configurePhase; configurePhase
|
||||
";
|
||||
# for development version. can be removed ?
|
||||
#configurePhase = "
|
||||
# [ -f configure ] || \\
|
||||
# LIBTOOLIZE=libtoolize ./autogen.sh
|
||||
# [>{ automake --add-missing; autoconf; }
|
||||
# unset configurePhase; configurePhase
|
||||
#";
|
||||
|
||||
meta = {
|
||||
description = "C++ port of the Java Topology Suite (JTS)"
|
||||
+ "- all the OpenGIS \"Simple Features for SQL\" spatial predicate functions and spatial operators,"
|
||||
+ " as well as specific JTS topology functions such as IsValid";
|
||||
homepage = http://geos.refractions.net/;
|
||||
license = "GPL";
|
||||
};
|
||||
meta = {
|
||||
description = "C++ port of the Java Topology Suite (JTS)"
|
||||
+ "- all the OpenGIS \"Simple Features for SQL\" spatial predicate functions and spatial operators,"
|
||||
+ " as well as specific JTS topology functions such as IsValid";
|
||||
homepage = http://geos.refractions.net/;
|
||||
license = "GPL";
|
||||
};
|
||||
};
|
||||
} ) args
|
||||
}
|
||||
|
||||
@@ -1,30 +1,29 @@
|
||||
args:
|
||||
let edf = args.lib.enableDisableFeature; in
|
||||
( args.mkDerivationByConfiguration {
|
||||
flagConfig = { }
|
||||
args: with args;
|
||||
let inherit (args.composableDerivation) composableDerivation edf; in
|
||||
composableDerivation {
|
||||
initial = {
|
||||
flags = { }
|
||||
# TODO! implement flags
|
||||
# I want to get kino and cinelerra working. That's why I don't spend more time on this now
|
||||
// edf "libtool_lock" "libtool_lock" { } #avoid locking (might break parallel builds)
|
||||
// edf "asm" "asm" { } #disable use of architecture specific assembly code
|
||||
// edf "sdl" "sdl" { } #enable use of SDL for display
|
||||
// edf "gtk" "gtk" { } #disable use of gtk for display
|
||||
// edf "xv" "xv" { } #disable use of XVideo extension for display
|
||||
// edf "gprof" "gprof" { } #enable compiler options for gprof profiling
|
||||
;
|
||||
// edf { name = "libtool_lock"; } #avoid locking (might break parallel builds)
|
||||
// edf { name ="asm"; } #disable use of architecture specific assembly code
|
||||
// edf { name ="sdl"; } #enable use of SDL for display
|
||||
// edf { name ="gtk"; } #disable use of gtk for display
|
||||
// edf { name ="xv"; } #disable use of XVideo extension for display
|
||||
// edf { name ="gprof"; }; #enable compiler options for gprof profiling
|
||||
|
||||
extraAttrs = co : {
|
||||
name = "libdv-1.0.0";
|
||||
name = "libdv-1.0.0";
|
||||
|
||||
src = args.fetchurl {
|
||||
url = mirror://sourceforge/libdv/libdv-1.0.0.tar.gz;
|
||||
sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3";
|
||||
};
|
||||
src = args.fetchurl {
|
||||
url = mirror://sourceforge/libdv/libdv-1.0.0.tar.gz;
|
||||
sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3";
|
||||
};
|
||||
|
||||
meta = {
|
||||
meta = {
|
||||
description = "software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards";
|
||||
homepage = http://sourceforge.net/projects/libdv/;
|
||||
# you can choose one of the following licenses:
|
||||
license = [];
|
||||
};
|
||||
};
|
||||
} ) args
|
||||
}
|
||||
|
||||
@@ -1,35 +1,31 @@
|
||||
args:
|
||||
( args.mkDerivationByConfiguration {
|
||||
flagConfig = {
|
||||
mandatory = { buildInputs = ["pkgconfig"];};
|
||||
# are these options of interest? We'll see
|
||||
#--disable-fftw disable usage of FFTW
|
||||
#--enable-debug enable debugging
|
||||
#--disable-cpu-clip disable tricky cpu specific clipper
|
||||
args: with args;
|
||||
stdenv.mkDerivation {
|
||||
|
||||
};
|
||||
name = "libsamplerate-0.1.2";
|
||||
|
||||
extraAttrs = co : {
|
||||
name = "libsamplerate-0.1.2";
|
||||
|
||||
src = args.fetchurl {
|
||||
url = http://www.mega-nerd.com/SRC/libsamplerate-0.1.2.tar.gz;
|
||||
sha256 = "1m1iwzpcny42kcqv5as2nyb0ggrb56wzckpximqpp2y74dipdf4q";
|
||||
};
|
||||
|
||||
configurePhase = "
|
||||
export LIBSAMPLERATE_CFLAGS=\"-I \$libsamplerate/include\"
|
||||
export LIBSAMPLERATE_LIBS=\"-L \$libsamplerate/libs\"
|
||||
./configure --prefix=\$out"+co.configureFlags;
|
||||
|
||||
meta = {
|
||||
description = "Sample Rate Converter for audio";
|
||||
homepage = http://www.mega-nerd.com/SRC/index.html;
|
||||
# you can choose one of the following licenses:
|
||||
license = [ "GPL"
|
||||
{ url=http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf;
|
||||
name="libsamplerate Commercial Use License";
|
||||
} ];
|
||||
};
|
||||
src = args.fetchurl {
|
||||
url = http://www.mega-nerd.com/SRC/libsamplerate-0.1.2.tar.gz;
|
||||
sha256 = "1m1iwzpcny42kcqv5as2nyb0ggrb56wzckpximqpp2y74dipdf4q";
|
||||
};
|
||||
} ) args
|
||||
|
||||
|
||||
buildInputs = ["pkgconfig"];
|
||||
# maybe interesting configure flags:
|
||||
#--disable-fftw disable usage of FFTW
|
||||
#--disable-cpu-clip disable tricky cpu specific clipper
|
||||
|
||||
configurePhase = "
|
||||
export LIBSAMPLERATE_CFLAGS=\"-I \$libsamplerate/include\"
|
||||
export LIBSAMPLERATE_LIBS=\"-L \$libsamplerate/libs\"
|
||||
./configure --prefix=\$out";
|
||||
|
||||
meta = {
|
||||
description = "Sample Rate Converter for audio";
|
||||
homepage = http://www.mega-nerd.com/SRC/index.html;
|
||||
# you can choose one of the following licenses:
|
||||
license = [ "GPL"
|
||||
{ url=http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf;
|
||||
name="libsamplerate Commercial Use License";
|
||||
} ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user