Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-24.05] versatiles: init at 0.12.10 #352358

Merged
merged 2 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21222,6 +21222,13 @@
githubId = 1215623;
keys = [ { fingerprint = "DA03 D6C6 3F58 E796 AD26 E99B 366A 2940 479A 06FC"; } ];
};
wilhelmines = {
email = "[email protected]";
matrix = "@wilhelmines:matrix.org";
name = "Ronja Schwarz";
github = "wilhelmines";
githubId = 71409721;
};
willbush = {
email = "[email protected]";
matrix = "@willbush:matrix.org";
Expand Down
51 changes: 51 additions & 0 deletions pkgs/by-name/ve/versatiles/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:

rustPlatform.buildRustPackage rec {
pname = "versatiles";
version = "0.12.10"; # When updating: Replace with current version

src = fetchFromGitHub {
owner = "versatiles-org";
repo = "versatiles-rs";
rev = "refs/tags/v${version}"; # When updating: Replace with long commit hash of new version
hash = "sha256-LKUpxsAy39dX8hESlUEVs4rkOpYsd7kbATfnU1QYd9Q="; # When updating: Use `lib.fakeHash` for recomputing the hash once. Run: 'nix-build -A versatiles'. Swap with new hash and proceed.
};

cargoHash = "sha256-dkFnoQY1+VNNrjS+o5Y0cvhWKoHt38KJKyNhCQ0dGaY="; # When updating: Same as above

# 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"
];

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;
};
}