File tree Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 1010 rust-jemalloc-sys ,
1111} :
1212
13- rustPlatform . buildRustPackage rec {
13+ rustPlatform . buildRustPackage ( finalAttrs : {
1414 pname = "matrix-conduit" ;
15- version = "0.9.0 " ;
15+ version = "0.10.3 " ;
1616
1717 src = fetchFromGitLab {
1818 owner = "famedly" ;
1919 repo = "conduit" ;
20- rev = "v${ version } " ;
21- hash = "sha256-mQLfRAun2G/LDnw3jyFGJbOqpxh2PL8IGzFELRfAgAI =" ;
20+ tag = "v${ finalAttrs . version } " ;
21+ hash = "sha256-cLPfgRchYLJXA13Xr1Yg3v+O/7SvxWYIAxaKvnsm7HM =" ;
2222 } ;
2323
2424 useFetchCargoVendor = true ;
25- cargoHash = "sha256-r7fOzTug0cKQUGrpXDn1JKb6/lLQDgnA3/colmldA4c =" ;
25+ cargoHash = "sha256-i/x6V/0WgMUuZoG8znREmAnLqw/9lYPk4F5i2SA5mmo =" ;
2626
2727 # Conduit enables rusqlite's bundled feature by default, but we'd rather use our copy of SQLite.
2828 preBuild = ''
29- substituteInPlace Cargo.toml --replace "features = [\"bundled\"]" "features = []"
29+ substituteInPlace Cargo.toml --replace-fail "features = [\"bundled\"]" "features = []"
3030 cargo update --offline -p rusqlite
3131 '' ;
3232
@@ -38,6 +38,7 @@ rustPlatform.buildRustPackage rec {
3838 buildInputs = [
3939 sqlite
4040 rust-jemalloc-sys
41+ rocksdb
4142 ] ;
4243
4344 env = {
@@ -52,14 +53,14 @@ rustPlatform.buildRustPackage rec {
5253 inherit ( nixosTests ) matrix-conduit ;
5354 } ;
5455
55- meta = with lib ; {
56+ meta = {
5657 description = "Matrix homeserver written in Rust" ;
5758 homepage = "https://conduit.rs/" ;
58- license = licenses . asl20 ;
59- maintainers = with maintainers ; [
59+ license = lib . licenses . asl20 ;
60+ maintainers = with lib . maintainers ; [
6061 pstn
6162 pimeys
6263 ] ;
6364 mainProgram = "conduit" ;
6465 } ;
65- }
66+ } )
Original file line number Diff line number Diff line change 2020
2121stdenv . mkDerivation ( finalAttrs : {
2222 pname = "rocksdb" ;
23- version = "9. 10.0 " ;
23+ version = "10.2.1 " ;
2424
2525 src = fetchFromGitHub {
2626 owner = "facebook" ;
2727 repo = "rocksdb" ;
28- rev = "v${ finalAttrs . version } " ;
29- hash = "sha256-G+DlQwEUyd7JOCjS1Hg1cKWmA/qAiK8UpUIKcP+riGQ =" ;
28+ tag = "v${ finalAttrs . version } " ;
29+ hash = "sha256-v8kZShgz0O3nHZwWjTvhcM56qAs/le1XgMVYyvVd4tg =" ;
3030 } ;
3131
3232 patches = lib . optional (
Original file line number Diff line number Diff line change 1919 stalwartEnterprise ? false ,
2020} :
2121
22- rustPlatform . buildRustPackage rec {
22+ rustPlatform . buildRustPackage ( finalAttrs : {
2323 pname = "stalwart-mail" + ( lib . optionalString stalwartEnterprise "-enterprise" ) ;
2424 version = "0.11.8" ;
2525
2626 src = fetchFromGitHub {
2727 owner = "stalwartlabs" ;
2828 repo = "mail-server" ;
29- tag = "v${ version } " ;
29+ tag = "v${ finalAttrs . version } " ;
3030 hash = "sha256-VqGosbSQxNeOS+kGtvXAmz6vyz5mJlXvKZM57B1Xue4=" ;
3131 } ;
3232
@@ -149,6 +149,9 @@ rustPlatform.buildRustPackage rec {
149149
150150 doCheck = ! ( stdenv . hostPlatform . isLinux && stdenv . hostPlatform . isAarch64 ) ;
151151
152+ # Allow network access during tests on Darwin/macOS
153+ __darwinAllowLocalNetworking = true ;
154+
152155 passthru = {
153156 inherit rocksdb ; # make used rocksdb version available (e.g., for backup scripts)
154157 webadmin = callPackage ./webadmin.nix { } ;
@@ -178,4 +181,4 @@ rustPlatform.buildRustPackage rec {
178181 pandapip1
179182 ] ;
180183 } ;
181- }
184+ } )
You can’t perform that action at this time.
0 commit comments