tile-downloader: init at 0.1.0

Stephen D 418d384d 2d2805b3

+46
+46
pkgs/by-name/ti/tile-downloader/package.nix
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitLab, 5 + nix-update-script, 6 + openssl, 7 + pkg-config, 8 + versionCheckHook, 9 + }: 10 + 11 + rustPlatform.buildRustPackage (finalAttrs: { 12 + pname = "tile-downloader"; 13 + version = "0.1.0"; 14 + 15 + src = fetchFromGitLab { 16 + domain = "gitlab.scd31.com"; 17 + owner = "stephen"; 18 + repo = "tile-downloader"; 19 + tag = "v${finalAttrs.version}"; 20 + hash = "sha256-+FnLGMUGyuaN7uPRvuounDKwF6pV9NKv3r/ajdKtdCE="; 21 + }; 22 + 23 + cargoHash = "sha256-jKNp+YJKZ3qpaDzwi3DvFaZAipRhm1+sTtKBtQEj7qI="; 24 + 25 + passthru = { 26 + updateScript = nix-update-script { }; 27 + }; 28 + 29 + nativeBuildInputs = [ 30 + pkg-config 31 + ]; 32 + buildInputs = [ 33 + openssl 34 + ]; 35 + 36 + doInstallCheck = true; 37 + nativeInstallCheckInputs = [ versionCheckHook ]; 38 + 39 + meta = { 40 + description = "Multi-threaded raster tile downloader, primarily designed for downloading OSM tiles for usage offline"; 41 + mainProgram = "tile-downloader"; 42 + homepage = "https://gitlab.scd31.com/stephen/tile-downloader"; 43 + license = lib.licenses.mit; 44 + maintainers = with lib.maintainers; [ scd31 ]; 45 + }; 46 + })