routino: enable on darwin (#93085)
This commit is contained in:
parent
b314827afd
commit
4af55b773f
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, perl, zlib, bzip2 }:
|
{ stdenv, fetchurl, fetchpatch, perl, zlib, bzip2 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "routino";
|
pname = "routino";
|
||||||
@ -9,12 +9,26 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1ccx3s99j8syxc1gqkzsaqkmyf44l7h3adildnc5iq2md7bp8wab";
|
sha256 = "1ccx3s99j8syxc1gqkzsaqkmyf44l7h3adildnc5iq2md7bp8wab";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ perl ];
|
nativeBuildInputs = [ perl ];
|
||||||
|
|
||||||
buildInputs = [ zlib bzip2 ];
|
buildInputs = [ zlib bzip2 ];
|
||||||
|
|
||||||
outputs = [ "out" "doc" ];
|
outputs = [ "out" "doc" ];
|
||||||
|
|
||||||
|
CLANG = stdenv.lib.optionalString stdenv.cc.isClang "1";
|
||||||
|
|
||||||
makeFlags = [ "prefix=$(out)" ];
|
makeFlags = [ "prefix=$(out)" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
@ -22,6 +36,6 @@ stdenv.mkDerivation rec {
|
|||||||
description = "OpenStreetMap Routing Software";
|
description = "OpenStreetMap Routing Software";
|
||||||
license = licenses.agpl3;
|
license = licenses.agpl3;
|
||||||
maintainers = with maintainers; [ dotlambda ];
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; linux ++ darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user