package.nix (789B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 gdal, 7 geoflow, 8 geos, 9 nlohmann_json, 10 }: 11 12 stdenv.mkDerivation (finalAttrs: { 13 pname = "gfp-gdal"; 14 version = "0.3.1"; 15 16 src = fetchFromGitHub { 17 owner = "geoflow3d"; 18 repo = "gfp-gdal"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-u4u4xJm2FaCg2TO/CRtt284VrQgGrQhlDy24pfhr0Uw="; 21 fetchSubmodules = true; 22 }; 23 24 nativeBuildInputs = [ cmake ]; 25 26 buildInputs = [ 27 gdal 28 geoflow 29 geos 30 nlohmann_json 31 ]; 32 33 installPhase = '' 34 install -Dm644 gfp_gdal.so -t $out/lib/geoflow-plugins 35 ''; 36 37 meta = { 38 description = "OGR reader and writer for geoflow"; 39 homepage = "https://github.com/geoflow3d/gfp-gdal"; 40 license = lib.licenses.gpl3Plus; 41 maintainers = [ lib.maintainers.sikmir ]; 42 }; 43 })
