diff options
author | Marc Weber <marco-oweber@gmx.de> | 2008-12-20 01:20:35 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2008-12-20 01:20:35 +0000 |
commit | e996113be7f41f067aaefac881c540b5ceb8d2d4 (patch) | |
tree | 177f16552ca2d05020c3d45a0b45502556a09502 /pkgs/development/libraries/geos | |
parent | 5ab6464edb9bbc2a9aa15122ffc02b57ad236bb7 (diff) | |
download | nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.gz nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.bz2 nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.lz nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.xz nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.zst nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.zip |
removed mkDerivationByConfiguration, using composableDerivation instead
qgis, vim_configurable both work now svn path=/nixpkgs/trunk/; revision=13661
Diffstat (limited to 'pkgs/development/libraries/geos')
-rw-r--r-- | pkgs/development/libraries/geos/default.nix | 66 |
1 files changed, 31 insertions, 35 deletions
diff --git a/pkgs/development/libraries/geos/default.nix b/pkgs/development/libraries/geos/default.nix index bcfe8f757a2..10cc4d94d40 100644 --- a/pkgs/development/libraries/geos/default.nix +++ b/pkgs/development/libraries/geos/default.nix @@ -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 +} |