2021-05-24 19:42:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitea
|
|
|
|
, autoreconfHook
|
2022-09-17 19:11:00 +00:00
|
|
|
, validatePkgConfig
|
2021-05-24 19:42:40 +00:00
|
|
|
, geos
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "librttopo";
|
|
|
|
version = "1.1.0";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "git.osgeo.org/gitea";
|
|
|
|
owner = "rttopo";
|
|
|
|
repo = "librttopo";
|
|
|
|
rev = "librttopo-${version}";
|
|
|
|
sha256 = "0h7lzlkn9g4xky6h81ndy0aa6dxz8wb6rnl8v3987jy1i6pr072p";
|
|
|
|
};
|
|
|
|
|
2022-09-17 19:11:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
validatePkgConfig
|
|
|
|
geos # for geos-config
|
|
|
|
];
|
2021-05-24 19:42:40 +00:00
|
|
|
|
|
|
|
buildInputs = [ geos ];
|
|
|
|
|
2022-09-17 19:11:00 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-05-24 19:42:40 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "RT Topology Library";
|
|
|
|
homepage = "https://git.osgeo.org/gitea/rttopo/librttopo";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2022-09-17 19:11:00 +00:00
|
|
|
platforms = platforms.unix;
|
2021-05-24 19:42:40 +00:00
|
|
|
};
|
|
|
|
}
|