13 pyFxADeps = python3.withPackages (p: [
14 p.setuptools # imports pkg_resources
15 # remainder taken from requirements.txt
22 rustPlatform.buildRustPackage rec {
23 pname = "syncstorage-rs";
26 src = fetchFromGitHub {
27 owner = "mozilla-services";
29 rev = "refs/tags/${version}";
30 hash = "sha256-hvKbKbRa5zk+80xmKWeMRjshaS6uybFzb5KdBY19Sl8=";
45 wrapProgram $out/bin/syncserver \
46 --prefix PATH : ${lib.makeBinPath [ pyFxADeps ]}
50 lockFile = ./Cargo.lock;
52 "deadpool-0.7.0" = "sha256-yQwn45EuzmPBwuT+iLJ/LLWAkBkW2vF+GLswdbpFVAY=";
53 "sentry-0.34.0" = "sha256-BdWz6EIEm2YU3DG3ODkuXCVCMV6srdyx2gXkOxINjHc=";
57 # almost all tests need a DB to test against
60 passthru.updateScript = nix-update-script {};
63 description = "Mozilla Sync Storage built with Rust";
64 homepage = "https://github.com/mozilla-services/syncstorage-rs";
65 changelog = "https://github.com/mozilla-services/syncstorage-rs/releases/tag/${version}";
66 license = lib.licenses.mpl20;
68 platforms = lib.platforms.linux;
69 mainProgram = "syncserver";