From 5bc7451f43be3635ee7714059222b8dcbe029825 Mon Sep 17 00:00:00 2001 From: Benjamin Pannell Date: Tue, 8 Nov 2022 22:33:24 +0000 Subject: [PATCH] feat: Add a dev shell in nix --- shell.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 shell.nix 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