From b097ff08367b90f9da65f36b436e26054b968cf7 Mon Sep 17 00:00:00 2001 From: Ronja Schwarz <71409721+wilhelmines@users.noreply.github.com> Date: Mon, 21 Oct 2024 22:48:51 +0200 Subject: [PATCH] versatiles: init at 0.12.10 versatiles: adding changelog link versatiles: added recommended changes --- pkgs/by-name/ve/versatiles/package.nix | 51 ++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkgs/by-name/ve/versatiles/package.nix diff --git a/pkgs/by-name/ve/versatiles/package.nix b/pkgs/by-name/ve/versatiles/package.nix new file mode 100644 index 0000000000000..6894384b92e25 --- /dev/null +++ b/pkgs/by-name/ve/versatiles/package.nix @@ -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 = "A 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; + }; +}