Skip to content

Commit 8300609

Browse files
committed
Add shell.nix for easier fuzzing
1 parent 59d1489 commit 8300609

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

shell.nix

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
3+
let
4+
moz_overlay = import (builtins.fetchTarball "https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz");
5+
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
6+
custom = import (builtins.fetchTarball {
7+
name = "killercup-nixpkgs";
8+
url = "https://github.com/killercup/nixpkgs/archive/cargo-fuzz-0.5.4.tar.gz";
9+
}) {};
10+
in pkgs.mkShell {
11+
buildInputs = with pkgs; [
12+
git
13+
(nixpkgs.rustChannelOf { date = "2019-10-23"; channel = "nightly"; }).rust
14+
custom.pkgs.cargo-fuzz
15+
];
16+
17+
RUSTFLAGS="-C link-arg=-fuse-ld=gold";
18+
RUST_BACKTRACE = 1;
19+
}
20+

0 commit comments

Comments
 (0)