about summary refs log tree commit diff
path: root/pkgs/development/tools/rust/cargo-bolero/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/rust/cargo-bolero/default.nix')
-rw-r--r--pkgs/development/tools/rust/cargo-bolero/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-bolero/default.nix b/pkgs/development/tools/rust/cargo-bolero/default.nix
new file mode 100644
index 0000000000000..5940459a5ebf2
--- /dev/null
+++ b/pkgs/development/tools/rust/cargo-bolero/default.nix
@@ -0,0 +1,25 @@
+{ lib, fetchFromGitHub, rustPlatform, stdenv, libbfd, libopcodes, libunwind }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "cargo-bolero";
+  version = "0.6.2";
+
+  src = fetchFromGitHub {
+    owner = "camshaft";
+    repo = "bolero";
+    rev = "${pname}-v${version}";
+    sha256 = "1p8g8av0l1qsmq09m0nwyyryk1v5bbah5izl4hf80ivi41mywkyi";
+  };
+
+  cargoLock.lockFile = ./Cargo.lock;
+  postPatch = "cp ${./Cargo.lock} Cargo.lock";
+
+  buildInputs = [ libbfd libopcodes libunwind ];
+
+  meta = with lib; {
+    description = "Fuzzing and property testing front-end framework for Rust";
+    homepage = "https://github.com/camshaft/cargo-bolero";
+    license = with licenses; [ mit ];
+    maintainers = [ maintainers.ekleog ];
+  };
+}