syncstorage-rs/shell.nix
Jörg Thalheim 1d28560a12
provide shell.nix
Nix is a distribution independent package manager.
By providing this file user of nix get automatically all
required build dependencies by sourcing default.nix via a tool called
nix-shell. This should lower the entry barrier when setting up a
build environment.

Nix is also used in other places in Mozilla: https://github.com/mozilla/nixpkgs-mozilla
2019-11-30 06:54:25 +00:00

21 lines
600 B
Nix

# 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";
}