Unverified Commit 22b819df authored by isabel's avatar isabel Committed by GitHub
Browse files

tile-downloader: init at 0.1.0 (#400095)

parents dbe5ce7d 418d384d
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitLab,
  nix-update-script,
  openssl,
  pkg-config,
  versionCheckHook,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "tile-downloader";
  version = "0.1.0";

  src = fetchFromGitLab {
    domain = "gitlab.scd31.com";
    owner = "stephen";
    repo = "tile-downloader";
    tag = "v${finalAttrs.version}";
    hash = "sha256-+FnLGMUGyuaN7uPRvuounDKwF6pV9NKv3r/ajdKtdCE=";
  };

  cargoHash = "sha256-jKNp+YJKZ3qpaDzwi3DvFaZAipRhm1+sTtKBtQEj7qI=";

  passthru = {
    updateScript = nix-update-script { };
  };

  nativeBuildInputs = [
    pkg-config
  ];
  buildInputs = [
    openssl
  ];

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];

  meta = {
    description = "Multi-threaded raster tile downloader, primarily designed for downloading OSM tiles for usage offline";
    mainProgram = "tile-downloader";
    homepage = "https://gitlab.scd31.com/stephen/tile-downloader";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ scd31 ];
  };
})