Merge branch 'master' into docs/add-hawk-token-example

This commit is contained in:
Rachel Tublitz 2019-12-06 15:35:17 -05:00 committed by GitHub
commit e877ce06af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View File

@ -29,6 +29,9 @@ Mozilla Sync Storage built with [Rust](https://rust-lang.org).
- MySQL 5.7 (or compatible)
-\* libmysqlclient (`brew install mysql` on macOS, `apt-get install libmysqlclient-dev` on Ubuntu)
- [Go](https://golang.org/doc/install)
- Cmake
- Pkg-config
- Openssl
Depending on your OS, you may also need to install `libgrpcdev`, and `protobuf-compiler-grpc`.

20
shell.nix Normal file
View File

@ -0,0 +1,20 @@
# Nix is a powerful package manager for Linux and other Unix systems that makes
# package management reliable and reproducible: https://nixos.org/nix/.
# This file is intended to be used with `nix-shell`
# (https://nixos.org/nix/manual/#sec-nix-shell) to setup a fully-functional
# syncstorage-rs build environment by installing all required dependencies.
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "syncstorage-rs";
buildInputs = [
rustc
cargo
libmysqlclient
pkgconfig
openssl
cmake
protobuf
go
];
NIX_LDFLAGS = "-L${libmysqlclient}/lib/mysql";
}