Skip to content

Commit

Permalink
feat: Add a dev shell in nix
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Nov 8, 2022
1 parent cacff0f commit 5bc7451
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { 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";
}

0 comments on commit 5bc7451

Please sign in to comment.