2008-12-20 01:20:35 +00:00
|
|
|
args: with args;
|
2009-05-24 11:57:46 +01:00
|
|
|
let inherit (builtins) getAttr;
|
|
|
|
edf = composableDerivation.edf;
|
|
|
|
optionIncLib = name : attr : " -D${name}_INCLUDE_DIR=${getAttr attr args}/incclude"
|
|
|
|
+ " -D${name}_LIBRARY=${getAttr attr args}/lib "; # lib 64?
|
2008-12-20 01:20:35 +00:00
|
|
|
in
|
2009-03-06 23:21:28 +00:00
|
|
|
composableDerivation.composableDerivation {} {
|
2008-12-20 01:20:35 +00:00
|
|
|
|
2009-03-06 23:21:28 +00:00
|
|
|
buildInputs = [ gdal cmake qt flex bison proj geos x11 sqlite gsl];
|
|
|
|
cfgOption = [
|
|
|
|
# without this option it can't find sqlite libs yet (missing symbols..) (TODO)
|
|
|
|
"-DWITH_INTERNAL_SQLITE3=TRUE"
|
|
|
|
];
|
|
|
|
|
2009-11-18 09:39:59 +00:00
|
|
|
name = "qgis-1.0.1-2";
|
2009-03-06 23:21:28 +00:00
|
|
|
|
|
|
|
# src = args.fetchsvn { url=https://svn.qgis.org/repos/qgis/trunk/qgis;
|
|
|
|
# md5="ac0560e0a2d4e6258c8639f1e9b56df3"; rev="7704"; };
|
|
|
|
src = fetchurl {
|
2009-11-18 09:39:59 +00:00
|
|
|
url = "http://download.osgeo.org/qgis/src/qgis_1.0.1-2.tar.gz";
|
2009-05-11 07:00:23 +01:00
|
|
|
sha256 = "07yyic9sn1pz20wjk7k560jwqz6b19rhf2gawybz38xq1f8rjwd4";
|
2009-03-06 23:21:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "user friendly Open Source Geographic Information System";
|
2009-05-11 07:00:23 +01:00
|
|
|
homepage = ttp://www.qgis.org;
|
2009-03-06 23:21:28 +00:00
|
|
|
# you can choose one of the following licenses:
|
|
|
|
license = [ "GPL" ];
|
2008-12-20 01:20:35 +00:00
|
|
|
};
|
2009-03-06 23:21:28 +00:00
|
|
|
|
|
|
|
phases = "unpackPhase buildPhase installPhase";
|
2009-05-11 07:00:23 +01:00
|
|
|
buildPhase = ''pwd; mkdir build; cd build; VERBOSE=1 cmake -DCMAKE_INSTALL_PREFIX=$out ''${cfgOption} ..'';
|
2009-03-06 23:21:28 +00:00
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
export CMAKE_SYSTEM_LIBRARY_PATH=
|
|
|
|
for i in $buildInputs $propagatedBuildInputs; do
|
|
|
|
CMAKE_SYSTEM_LIBRARY_PATH=$i/lib:$CMAKE_SYSTEM_LIBRARY_PATH
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
#configurePhase="./autogen.sh --prefix=\$out --with-gdal=\$gdal/bin/gdal-config --with-qtdir=\$qt";
|
|
|
|
# buildPhases="unpackPhase buildPhase";
|
|
|
|
|
2008-12-20 01:20:35 +00:00
|
|
|
}
|