Files
nixpkgs/pkgs/by-name/ve/versatiles/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
2.0 KiB
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "versatiles";
version = "0.15.7"; # When updating: Replace with current version
src = fetchFromGitHub {
owner = "versatiles-org";
repo = "versatiles-rs";
tag = "v${version}"; # When updating: Replace with long commit hash of new version
hash = "sha256-E0CWhNaaIfBZsRYcZ2FzWW6HhBRVolY/Lfr1ru+sikQ="; # When updating: Use `lib.fakeHash` for recomputing the hash once. Run: 'nix-build -A versatiles'. Swap with new hash and proceed.
};
cargoHash = "sha256-1ZC1MLPfh9E36dxF23Fd0668m3c4cKRD+TJTF1h7ph8="; # When updating: Same as above
__darwinAllowLocalNetworking = true;
# Testing only necessary for the `bins` and `lib` features
cargoTestFlags = [
"--bins"
"--lib"
];
# Skip tests that require network access
checkFlags = [
"--skip=tools::convert::tests::test_remote1"
"--skip=tools::convert::tests::test_remote2"
"--skip=tools::probe::tests::test_remote"
"--skip=tools::serve::tests::test_remote"
"--skip=utils::io::data_reader_http"
"--skip=utils::io::data_reader_http::tests::read_range_git"
"--skip=utils::io::data_reader_http::tests::read_range_googleapis"
"--skip=io::data_reader_http::tests::read_range_git"
"--skip=io::data_reader_http::tests::read_range_googleapis"
];
meta = {
description = "Toolbox for converting, checking and serving map tiles in various formats";
longDescription = ''
VersaTiles is a Rust-based project designed for processing and serving tile data efficiently.
It supports multiple tile formats and offers various functionalities for handling tile data.
'';
homepage = "https://versatiles.org/";
downloadPage = "https://github.com/versatiles-org/versatiles-rs";
changelog = "https://github.com/versatiles-org/versatiles-rs/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ wilhelmines ];
mainProgram = "versatiles";
platforms = with lib.platforms; linux ++ darwin ++ windows;
};
}