package.nix (822B)
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 __structuredAttrs = true; 15 16 src = fetchFromGitHub { 17 owner = "geoflow3d"; 18 repo = "gfp-basic3d"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-hSf5c5fnJQJHNPxLtZZZJa2JsOuje1dH6Q9YtJz82h4="; 21 fetchSubmodules = true; 22 }; 23 24 nativeBuildInputs = [ cmake ]; 25 26 buildInputs = [ 27 geoflow 28 nlohmann_json 29 ]; 30 31 installPhase = '' 32 install -Dm644 gfp_core_io.so -t $out/lib/geoflow-plugins 33 ''; 34 35 meta = { 36 description = "Various 3D format writers for geoflow (CityJSON, PLY, OBJ)"; 37 homepage = "https://github.com/geoflow3d/gfp-basic3d"; 38 license = lib.licenses.gpl3Plus; 39 maintainers = [ lib.maintainers.sikmir ]; 40 }; 41 })
