1{
2 lib,
3 buildDotnetModule,
4 fetchFromGitHub,
5 versionCheckHook,
6 nix-update-script,
7}:
8
9buildDotnetModule (finalAttrs: {
10 pname = "obj2tiles";
11 version = "1.0.13";
12 src = fetchFromGitHub {
13 owner = "OpenDroneMap";
14 repo = "Obj2Tiles";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-GLMLBmkVhuh8iYAxjD2XXnOvkw8dMuKTH49vvvSNHBI=";
17 };
18 projectFile = "Obj2Tiles/Obj2Tiles.csproj";
19 nugetDeps = ./deps.json;
20 nativeInstallCheckInputs = [ versionCheckHook ];
21 versionCheckProgram = "${placeholder "out"}/bin/Obj2Tiles";
22 versionCheckProgramArg = "--version";
23 doInstallCheck = true;
24 meta = {
25 description = "Converts OBJ files to OGC 3D tiles by performing splitting, decimation and conversion";
26 homepage = "https://github.com/OpenDroneMap/Obj2Tiles";
27 changelog = "https://github.com/OpenDroneMap/Obj2Tiles/releases/tag/v${finalAttrs.version}";
28 license = lib.licenses.agpl3Only;
29 maintainers = with lib.maintainers; [ mapperfr ];
30 mainProgram = "Obj2Tiles";
31 };
32})