2024-01-25 14:12:00 +00:00
{ lib
, fetchFromGitHub
, rustPlatform
, cmake
, fuse3
, pkg-config
} :
rustPlatform . buildRustPackage rec {
pname = " m o u n t p o i n t - s 3 " ;
2024-04-21 15:54:59 +00:00
version = " 1 . 6 . 0 " ;
2024-01-25 14:12:00 +00:00
src = fetchFromGitHub {
owner = " a w s l a b s " ;
repo = " m o u n t p o i n t - s 3 " ;
rev = " v ${ version } " ;
2024-04-21 15:54:59 +00:00
hash = " s h a 2 5 6 - 1 d 2 P P b T h e U c H w 2 x S 5 L E c d c h n f w u 7 s z B A p v + F n P a x t + I = " ;
2024-01-25 14:12:00 +00:00
fetchSubmodules = true ;
} ;
2024-04-21 15:54:59 +00:00
cargoHash = " s h a 2 5 6 - t B i 4 1 k d a a 4 m V H h 0 M k X J 8 k a G 1 e 3 C Q U R I K V k 9 L b o y 1 N 8 Y = " ;
2024-01-25 14:12:00 +00:00
# thread 'main' panicked at cargo-auditable/src/collect_audit_data.rs:77:9:
# cargo metadata failure: error: none of the selected packages contains these features: libfuse3
auditable = false ;
nativeBuildInputs = [ cmake pkg-config rustPlatform . bindgenHook ] ;
buildInputs = [ fuse3 ] ;
checkFlags = [
#thread 's3_crt_client::tests::test_expected_bucket_owner' panicked at mountpoint-s3-client/src/s3_crt_client.rs:1123:47:
#Create test client: ProviderFailure(Error(1173, "aws-c-io: AWS_IO_TLS_ERROR_DEFAULT_TRUST_STORE_NOT_FOUND, Default TLS trust store not found on this system. Trusted CA certificates must be installed, or \"override default trust store\" must be used while creating the TLS context."))
#
" - - s k i p = s 3 _ c r t _ c l i e n t : : t e s t s : : t e s t _ e x p e c t e d _ b u c k e t _ o w n e r "
" - - s k i p = s 3 _ c r t _ c l i e n t : : t e s t s : : t e s t _ u s e r _ a g e n t _ w i t h _ p r e f i x "
" - - s k i p = s 3 _ c r t _ c l i e n t : : t e s t s : : t e s t _ u s e r _ a g e n t _ w i t h o u t _ p r e f i x "
" - - s k i p = t e s t s : : s m o k e "
# fuse module not available on build machine ?
#
# fuse: device not found, try 'modprobe fuse' first
# thread 'unmount_no_send' panicked at vendor/fuser/tests/integration_tests.rs:16:79:
# called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
" - - s k i p = u n m o u n t _ n o _ s e n d "
# sandbox issue ?
#
# thread 'mnt::test::mount_unmount' panicked at vendor/fuser/src/mnt/mod.rs:165:57:
# called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
" - - s k i p = m n t : : t e s t : : m o u n t _ u n m o u n t "
" - - s k i p = t e s t _ g e t _ i d e n t i t y _ d o c u m e n t "
] ;
meta = with lib ; {
homepage = " h t t p s : / / g i t h u b . c o m / a w s l a b s / m o u n t p o i n t - s 3 " ;
description = " A s i m p l e , h i g h - t h r o u g h p u t f i l e c l i e n t f o r m o u n t i n g a n A m a z o n S 3 b u c k e t a s a l o c a l f i l e s y s t e m . " ;
2024-04-21 15:54:59 +00:00
license = licenses . asl20 ;
2024-01-25 14:12:00 +00:00
maintainers = with maintainers ; [ lblasc ] ;
platforms = platforms . linux ;
} ;
}