2024-10-21 20:48:51 +00:00
{
lib ,
fetchFromGitHub ,
rustPlatform ,
} :
rustPlatform . buildRustPackage rec {
pname = " v e r s a t i l e s " ;
2024-10-31 05:35:05 +00:00
version = " 0 . 1 3 . 0 " ; # When updating: Replace with current version
2024-10-21 20:48:51 +00:00
src = fetchFromGitHub {
owner = " v e r s a t i l e s - o r g " ;
repo = " v e r s a t i l e s - r s " ;
rev = " r e f s / t a g s / v ${ version } " ; # When updating: Replace with long commit hash of new version
2024-10-31 05:35:05 +00:00
hash = " s h a 2 5 6 - 6 H u B K R v t 6 P 4 G p F a I i Y s G O / 8 w c j M L 2 U D d U F o Y v I M / Z 0 k = " ; # When updating: Use `lib.fakeHash` for recomputing the hash once. Run: 'nix-build -A versatiles'. Swap with new hash and proceed.
2024-10-21 20:48:51 +00:00
} ;
2024-10-31 05:35:05 +00:00
cargoHash = " s h a 2 5 6 - 7 k J f 6 B H N R f L D F R Z p 8 Q 2 M 2 Z G X H 0 N z G / Q B q w 5 / s 2 0 A I m 4 = " ; # When updating: Same as above
2024-10-21 20:48:51 +00:00
# Testing only necessary for the `bins` and `lib` features
cargoTestFlags = [
" - - b i n s "
" - - l i b "
] ;
# Skip tests that require network access
checkFlags = [
" - - s k i p t o o l s : : c o n v e r t : : t e s t s : : t e s t _ r e m o t e 1 "
" - - s k i p t o o l s : : c o n v e r t : : t e s t s : : t e s t _ r e m o t e 2 "
" - - s k i p t o o l s : : p r o b e : : t e s t s : : t e s t _ r e m o t e "
" - - s k i p t o o l s : : s e r v e : : t e s t s : : t e s t _ r e m o t e "
" - - s k i p u t i l s : : i o : : d a t a _ r e a d e r _ h t t p "
" - - s k i p u t i l s : : i o : : d a t a _ r e a d e r _ h t t p : : t e s t s : : r e a d _ r a n g e _ g i t "
" - - s k i p u t i l s : : i o : : d a t a _ r e a d e r _ h t t p : : t e s t s : : r e a d _ r a n g e _ g o o g l e a p i s "
] ;
meta = {
description = " T o o l b o x f o r c o n v e r t i n g , c h e c k i n g a n d s e r v i n g m a p t i l e s i n v a r i o u s f o r m a t s " ;
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 = " h t t p s : / / v e r s a t i l e s . o r g / " ;
downloadPage = " h t t p s : / / g i t h u b . c o m / v e r s a t i l e s - o r g / v e r s a t i l e s - r s " ;
changelog = " h t t p s : / / g i t h u b . c o m / v e r s a t i l e s - o r g / v e r s a t i l e s - r s / r e l e a s e s / t a g / v ${ version } " ;
license = lib . licenses . mit ;
maintainers = with lib . maintainers ; [ wilhelmines ] ;
mainProgram = " v e r s a t i l e s " ;
platforms = with lib . platforms ; linux ++ darwin ++ windows ;
} ;
}