File tree Expand file tree Collapse file tree
pkgs/by-name/sy/syncstorage-rs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 fetchFromGitHub ,
3+ fetchurl ,
34 rustPlatform ,
45 pkg-config ,
56 python3 ,
1920 p . tokenlib
2021 p . cryptography
2122 ] ) ;
23+ # utoipa-swagger-ui downloads Swagger UI assets at build time.
24+ # Prefetch the archive for sandboxed builds.
25+ swaggerUi = fetchurl {
26+ url = "https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.17.14.zip" ;
27+ hash = "sha256-SBJE0IEgl7Efuu73n3HZQrFxYX+cn5UU5jrL4T5xzNw=" ;
28+ } ;
2229in
2330
2431rustPlatform . buildRustPackage ( finalAttrs : {
2532 pname = "syncstorage-rs" ;
26- version = "0.21.1-unstable-2026-01-26 " ;
33+ version = "0.23.3 " ;
2734
2835 src = fetchFromGitHub {
2936 owner = "mozilla-services" ;
3037 repo = "syncstorage-rs" ;
31- rev = "11659d98f9c69948a0aab353437ce2036c388711 " ;
32- hash = "sha256-G37QvxTNh/C3gmKG0UYHI6QBr0F+KLGRNI/Sx33uOsc =" ;
38+ rev = "refs/tags/ ${ finalAttrs . version } " ;
39+ hash = "sha256-d0rA/bWuo4gXvqI2inlvRI9NBP6ZRNSwLPkszNIkmhE =" ;
3340 } ;
3441
3542 nativeBuildInputs = [
@@ -43,12 +50,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
4350 libmysqlclient
4451 ] ;
4552
53+ env = {
54+ SWAGGER_UI_DOWNLOAD_URL = "file://${ swaggerUi } " ;
55+ } ;
56+
4657 preFixup = ''
4758 wrapProgram $out/bin/syncserver \
4859 --prefix PATH : ${ lib . makeBinPath [ pyFxADeps ] }
4960 '' ;
5061
51- cargoHash = "sha256-9Dcf5mDyK/XjsKTlCPXTHoBkIq+FFPDg1zfK24Y9nHQ =" ;
62+ cargoHash = "sha256-BJ5+6o57WlwsTerKCmOPXATPHQfjr5cRYMbqC8CIPg0 =" ;
5263
5364 # almost all tests need a DB to test against
5465 doCheck = false ;
You can’t perform that action at this time.
0 commit comments