default.nix (891B)
1 { lib, stdenv, rustPlatform, fetchFromGitHub, darwin, buildPackages }: 2 3 rustPlatform.buildRustPackage rec { 4 pname = "bbox"; 5 version = "0.5.0"; 6 7 src = fetchFromGitHub { 8 owner = "bbox-services"; 9 repo = "bbox"; 10 rev = "v${version}"; 11 hash = "sha256-Vhzch4jnWtYQ2/x9tNGph8FDDxB1vRR9L9KVZf3Tha4="; 12 }; 13 14 cargoLock = { 15 lockFile = ./Cargo.lock; 16 outputHashes = { 17 "tile-grid-0.5.2" = "sha256-usU44667dCob0J+RGn2nGMfdUSlRuVGM4bTfm19hD9E="; 18 }; 19 }; 20 21 PROTOC = "${buildPackages.protobuf}/bin/protoc"; 22 23 buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration; 24 25 cargoBuildFlags = [ "--package" "bbox-server" "--package" "bbox-tile-server" ]; 26 27 meta = with lib; { 28 description = "BBOX services"; 29 inherit (src.meta) homepage; 30 license = with licenses; [ asl20 mit ]; 31 maintainers = [ maintainers.sikmir ]; 32 }; 33 }