diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..6e88216 --- /dev/null +++ b/shell.nix @@ -0,0 +1,17 @@ +let + moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); + nixpkgs = import { overlays = [ moz_overlay ]; }; +in + with nixpkgs; + stdenv.mkDerivation { + name = "moz_overlay_shell"; + buildInputs = [ + # to use the latest nightly: + nixpkgs.latest.rustChannels.nightly.rust + nixpkgs.libiconv + nixpkgs.protobuf + ] + ++ lib.optionals stdenv.isDarwin [darwin.apple_sdk.frameworks.Security]; + + PROTOC = "${pkgs.protobuf}/bin/protoc"; + } \ No newline at end of file