default.nix (745B)
1 { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, sqlite }: 2 3 rustPlatform.buildRustPackage rec { 4 pname = "mbutiles"; 5 version = "0.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "amarant"; 9 repo = "mbutiles"; 10 rev = version; 11 hash = "sha256-XVMmTqZsfIkCmZAdGi70HWiV10iawUpN3XbH93VEh7I="; 12 }; 13 14 cargoPatches = [ ./cargo-lock.patch ]; 15 cargoHash = "sha256-fOCOtB/orCAKQROMBCecGBxArMafkTp/dby3O4GgCMg="; 16 17 nativeBuildInputs = [ pkg-config ]; 18 19 buildInputs = [ sqlite ]; 20 21 meta = with lib; { 22 description = "mbtiles utility in Rust, generate MBTiles from tiles directories and extract tiles from MBTiles file"; 23 inherit (src.meta) homepage; 24 license = licenses.bsd3; 25 maintainers = [ maintainers.sikmir ]; 26 }; 27 }