2020-07-16 00:38:40 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, perl, zlib, bzip2 }:
|
2017-09-24 21:04:04 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "routino";
|
2019-09-29 05:01:07 +02:00
|
|
|
version = "3.3.2";
|
2017-09-24 21:04:04 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://routino.org/download/${pname}-${version}.tgz";
|
2019-09-29 05:01:07 +02:00
|
|
|
sha256 = "1ccx3s99j8syxc1gqkzsaqkmyf44l7h3adildnc5iq2md7bp8wab";
|
2017-09-24 21:04:04 +02:00
|
|
|
};
|
|
|
|
|
2020-07-16 00:38:40 +02:00
|
|
|
patchFlags = [ "-p0" ];
|
|
|
|
patches = stdenv.lib.optionals stdenv.isDarwin [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/macports/macports-ports/18fd229516a46e7272003acbe555735b2a902db7/gis/routino/files/patch-Makefile_conf.diff";
|
|
|
|
sha256 = "1b7hpa4sizansnwwxq1c031nxwdwh71pg08jl9z9apiab8pjsn53";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/macports/macports-ports/18fd229516a46e7272003acbe555735b2a902db7/gis/routino/files/patch-src_Makefile_dylib_extension.diff";
|
|
|
|
sha256 = "1kigxcfr7977baxdsfvrw6q453cpqlzqakhj7av2agxkcvwyilpv";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-09-24 21:04:04 +02:00
|
|
|
nativeBuildInputs = [ perl ];
|
2017-09-28 19:29:49 +02:00
|
|
|
|
2017-09-24 21:04:04 +02:00
|
|
|
buildInputs = [ zlib bzip2 ];
|
|
|
|
|
2017-09-28 19:29:49 +02:00
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
2020-07-16 00:38:40 +02:00
|
|
|
CLANG = stdenv.lib.optionalString stdenv.cc.isClang "1";
|
|
|
|
|
2017-09-28 19:29:49 +02:00
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
2017-09-24 21:04:04 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.routino.org/";
|
2017-09-24 21:04:04 +02:00
|
|
|
description = "OpenStreetMap Routing Software";
|
|
|
|
license = licenses.agpl3;
|
2017-12-05 23:20:11 +01:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2020-07-16 00:38:40 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2017-09-24 21:04:04 +02:00
|
|
|
};
|
|
|
|
}
|