ajout paquet
This commit is contained in:
28
geos.nix
Normal file
28
geos.nix
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
with import <nixpkgs> {};
|
||||||
|
#{ composableDerivation, fetchurl, python }:
|
||||||
|
|
||||||
|
let inherit (composableDerivation) edf; in
|
||||||
|
|
||||||
|
composableDerivation.composableDerivation {} rec {
|
||||||
|
|
||||||
|
flags =
|
||||||
|
# python and ruby untested
|
||||||
|
edf { name = "python"; enable = { buildInputs = [ python ]; }; };
|
||||||
|
# (if args.use_svn then ["libtool" "autoconf" "automake" "swig"] else [])
|
||||||
|
# // edf { name = "ruby"; enable = { buildInputs = [ ruby ]; };}
|
||||||
|
|
||||||
|
name = "geos-3.6.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://download.osgeo.org/geos/${name}.tar.bz2";
|
||||||
|
sha256 = "1icz31kd5sml2kdxhjznvmv33zfr6nig9l0i6bdcz9q9g8x4wbja";
|
||||||
|
};
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "C++ port of the Java Topology Suite (JTS)";
|
||||||
|
homepage = http://geos.refractions.net/;
|
||||||
|
license = "GPL";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -4,40 +4,43 @@ stdenv.mkDerivation rec {
|
|||||||
version = "0.92.0";
|
version = "0.92.0";
|
||||||
name = "osm2pgsql-${version}";
|
name = "osm2pgsql-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/openstreetmap/osm2pgsql/archive/${version}.tar.gz";
|
owner = "openstreetmap";
|
||||||
sha256 = "0xzfcghl6nycixaajz6sblb57nlcidasjx8zfbpmvzc9ckgwyhdp";
|
repo = "osm2pgsql";
|
||||||
};
|
rev = version;
|
||||||
|
sha256 = "1wf3xd33glf4kf34yx7ljwzmn24iar1rb0zqf8m2qclqs169f8dz";
|
||||||
|
};
|
||||||
|
|
||||||
#nativeBuildInputs = [ ];
|
#nativeBuildInputs = [ ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost
|
boost
|
||||||
bzip2
|
bzip2
|
||||||
cmake
|
cmake
|
||||||
expat
|
expat
|
||||||
geos
|
#geos
|
||||||
#libressl # TLS, crypto implementation
|
r6d.geos
|
||||||
lua
|
#libressl # TLS, crypto implementation
|
||||||
openssl # TLS, crypto implementation
|
lua
|
||||||
python python27Packages.psycopg2 # regression tests
|
openssl # TLS, crypto implementation
|
||||||
postgresql
|
python python27Packages.psycopg2 # regression tests
|
||||||
proj
|
postgresql
|
||||||
zlib
|
proj
|
||||||
|
zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
#preConfigure = ''
|
#preConfigure = ''
|
||||||
#'';
|
#'';
|
||||||
#buildPhase = ''jam "-j$NIX_BUILD_CORES" '';
|
#buildPhase = ''jam "-j$NIX_BUILD_CORES" '';
|
||||||
#installPhase = ''
|
#installPhase = ''
|
||||||
#'';
|
#'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://wiki.openstreetmap.org/wiki/Osm2pgsql;
|
homepage = http://wiki.openstreetmap.org/wiki/Osm2pgsql;
|
||||||
description = "osm2pgsql is a tool for loading OpenStreetMap data into a PostgreSQL / PostGIS database suitable for applications like rendering into a map, geocoding with Nominatim, or general analysis.";
|
description = "osm2pgsql is a tool for loading OpenStreetMap data into a PostgreSQL / PostGIS database suitable for applications like rendering into a map, geocoding with Nominatim, or general analysis.";
|
||||||
#license = licenses.gpl2;
|
#license = licenses.gpl2;
|
||||||
#maintainers = [ maintainers.phunehehe ];
|
#maintainers = [ maintainers.phunehehe ];
|
||||||
maintainers = [ "Jean-Pierre PRUNARET <jean-pierre+git@prunetwork.fr>" ];
|
maintainers = [ "Jean-Pierre PRUNARET <jean-pierre+git@prunetwork.fr>" ];
|
||||||
#maintainers = [ maintainers.jpierre03 ];
|
#maintainers = [ maintainers.jpierre03 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ with (import <nixpkgs/pkgs/top-level/release-lib.nix> { inherit supportedSystems
|
|||||||
teleragno.www.MASTER = import ./github-teleragno-www-MASTER.nix;
|
teleragno.www.MASTER = import ./github-teleragno-www-MASTER.nix;
|
||||||
|
|
||||||
midpix.slibtool = import ./midipix.nix;
|
midpix.slibtool = import ./midipix.nix;
|
||||||
|
|
||||||
|
r6d.geos = import ./geos.nix
|
||||||
|
r6d.osm2pgsql = import ./osm2pgsql.nix
|
||||||
} /* // {
|
} /* // {
|
||||||
# Simply assign a derivation to an attribute to have it built.
|
# Simply assign a derivation to an attribute to have it built.
|
||||||
hello_world_1 = pkgs_x86_64_linux.hello;
|
hello_world_1 = pkgs_x86_64_linux.hello;
|
||||||
|
|||||||
Reference in New Issue
Block a user