default.nix (864B)
1 { 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 buildPackages, 6 }: 7 8 rustPlatform.buildRustPackage (finalAttrs: { 9 pname = "bbox"; 10 version = "0.6.2"; 11 12 src = fetchFromGitHub { 13 owner = "bbox-services"; 14 repo = "bbox"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-FmY9Hqwv9lWjdEMe4JZM/nw8BaeZ+4eK+nibOUwcE+8="; 17 }; 18 19 cargoLock = { 20 lockFile = ./Cargo.lock; 21 outputHashes = { 22 "pmtiles-0.12.0" = "sha256-wy22X51TcQOFxdXOInQxoL8DtFPqtV3pE0pQaEehtCA="; 23 }; 24 }; 25 26 PROTOC = "${buildPackages.protobuf}/bin/protoc"; 27 28 cargoBuildFlags = [ 29 "--package" 30 "bbox-server" 31 "--package" 32 "bbox-tile-server" 33 ]; 34 35 meta = { 36 description = "BBOX services"; 37 homepage = "https://github.com/bbox-services/bbox"; 38 license = with lib.licenses; [ 39 asl20 40 mit 41 ]; 42 maintainers = [ lib.maintainers.sikmir ]; 43 }; 44 })