-
Notifications
You must be signed in to change notification settings - Fork 42
/
flake.nix
40 lines (31 loc) · 929 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
description = "honggfuzz-rs: Fuzz your Rust code with Google-developed Honggfuzz !";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem ( system: let
pkgs = inputs.nixpkgs.legacyPackages.${system};
in rec {
packages.honggfuzz-rs = pkgs.rustPlatform.buildRustPackage rec {
pname = "honggfuzz-rs";
version = "git";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
};
devShells.default = pkgs.mkShell rec {
name = "honggfuzz-rs-devshell";
buildInputs = with pkgs; [
libbfd
bintools-unwrapped
libunwind
];
inputsFrom = with pkgs; [
packages.honggfuzz-rs
];
};
packages.default = packages.honggfuzz-rs;
});
}