default.nix (793B)
1 { 2 lib, 3 buildGoModule, 4 fetchFromSourcehut, 5 sqlite, 6 }: 7 8 buildGoModule rec { 9 pname = "mobroute"; 10 version = "0.8.2"; 11 12 src = fetchFromSourcehut { 13 owner = "~mil"; 14 repo = "mobroute"; 15 rev = "v${version}"; 16 hash = "sha256-5Psbux1Zn6VXcBgyqlO1IboVjUVz8cC+Hoy4Qxm6XgM="; 17 }; 18 19 vendorHash = "sha256-16+AiKFXgXYg2AcDhpfT8o7tw5J8NYJGyKR4TsGCj/o="; 20 21 tags = [ "sqlite_math_functions" ]; 22 23 buildInputs = [ sqlite ]; 24 25 preCheck = '' 26 export HOME=$TMPDIR 27 ''; 28 29 postInstall = '' 30 mv $out/bin/{cli,mobroute} 31 ''; 32 33 meta = { 34 description = "Minimal FOSS Public Transportation Router"; 35 homepage = "https://sr.ht/~mil/mobroute"; 36 license = lib.licenses.mit; 37 maintainers = [ lib.maintainers.sikmir ]; 38 mainProgram = "mobroute"; 39 skip.ci = true; 40 }; 41 }