package.nix (793B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 geoflow, 7 nlohmann_json, 8 }: 9 10 stdenv.mkDerivation (finalAttrs: { 11 pname = "gfp-basic3d"; 12 version = "0.4.18"; 13 14 src = fetchFromGitHub { 15 owner = "geoflow3d"; 16 repo = "gfp-basic3d"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-hSf5c5fnJQJHNPxLtZZZJa2JsOuje1dH6Q9YtJz82h4="; 19 fetchSubmodules = true; 20 }; 21 22 nativeBuildInputs = [ cmake ]; 23 24 buildInputs = [ 25 geoflow 26 nlohmann_json 27 ]; 28 29 installPhase = '' 30 install -Dm644 gfp_core_io.so -t $out/lib/geoflow-plugins 31 ''; 32 33 meta = { 34 description = "Various 3D format writers for geoflow (CityJSON, PLY, OBJ)"; 35 homepage = "https://github.com/geoflow3d/gfp-basic3d"; 36 license = lib.licenses.gpl3Plus; 37 maintainers = [ lib.maintainers.sikmir ]; 38 }; 39 })
