shapelib: 1.5.0 -> 1.6.0

This commit is contained in:
Ivan Mincik 2023-12-22 19:11:13 +01:00
parent ea8bb2df93
commit 9b7aff6688

View File

@ -1,26 +1,17 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
}:
stdenv.mkDerivation rec {
pname = "shapelib";
version = "1.5.0";
version = "1.6.0";
src = fetchurl {
url = "https://download.osgeo.org/shapelib/shapelib-${version}.tar.gz";
sha256 = "1qfsgb8b3yiqwvr6h9m81g6k9fjhfys70c22p7kzkbick20a9h0z";
sha256 = "sha256-GVKLJDdyQXBWNzIMNnlDAxrVCIZl0fsOHqpSpxJkpsQ=";
};
patches = [
(fetchpatch {
name = "CVE-2022-0699.patch";
url = "https://github.com/OSGeo/shapelib/commit/c75b9281a5b9452d92e1682bdfe6019a13ed819f.patch";
sha256 = "sha256-zJ7JHUtInA5q/RbkSs1DqVK+UQi2vIw2t1jqxocnQQI=";
})
];
doCheck = true;
preCheck = ''
patchShebangs tests contrib/tests