geos: fetch source code from GitHub (#255970)

This commit is contained in:
Ivan Mincik
2024-12-17 08:30:27 +00:00
committed by GitHub

View File

@@ -2,7 +2,7 @@
lib,
stdenv,
callPackage,
fetchurl,
fetchFromGitHub,
testers,
cmake,
@@ -12,9 +12,11 @@ stdenv.mkDerivation (finalAttrs: {
pname = "geos";
version = "3.13.0";
src = fetchurl {
url = "https://download.osgeo.org/geos/geos-${finalAttrs.version}.tar.bz2";
hash = "sha256-R+yD/zNNZyueRCZpXxXabmNoJEIUlx+r84b/jvbfOeQ=";
src = fetchFromGitHub {
owner = "libgeos";
repo = "geos";
tag = finalAttrs.version;
hash = "sha256-WcE5dbfbeq9uCRgfVgiA3MTOisRpilXxjquEM5aKTCc=";
};
nativeBuildInputs = [ cmake ];