2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "shapelib";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-13 20:06:32 +00:00
|
|
|
url = "https://download.osgeo.org/shapelib/shapelib-${version}.tar.gz";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-GVKLJDdyQXBWNzIMNnlDAxrVCIZl0fsOHqpSpxJkpsQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
doCheck = true;
|
|
|
|
preCheck = ''
|
|
|
|
patchShebangs tests contrib/tests
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C Library for reading, writing and updating ESRI Shapefiles";
|
|
|
|
homepage = "http://shapelib.maptools.org/";
|
|
|
|
license = licenses.gpl2;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; teams.geospatial.members ++ [ ehmry ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|