diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/shapelib')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/shapelib/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/shapelib/default.nix b/nixpkgs/pkgs/development/libraries/shapelib/default.nix new file mode 100644 index 000000000000..27a3b7f5ee30 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/shapelib/default.nix @@ -0,0 +1,26 @@ +{ lib +, stdenv +, fetchurl +}: + +stdenv.mkDerivation rec { + pname = "shapelib"; + version = "1.6.0"; + + src = fetchurl { + url = "https://download.osgeo.org/shapelib/shapelib-${version}.tar.gz"; + sha256 = "sha256-GVKLJDdyQXBWNzIMNnlDAxrVCIZl0fsOHqpSpxJkpsQ="; + }; + + doCheck = true; + preCheck = '' + patchShebangs tests contrib/tests + ''; + + meta = with lib; { + description = "C Library for reading, writing and updating ESRI Shapefiles"; + homepage = "http://shapelib.maptools.org/"; + license = licenses.gpl2; + maintainers = with maintainers; teams.geospatial.members ++ [ ehmry ]; + }; +} |