1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00

Merge pull request #40159 from Ekleog/cargo-fuzz-0.5.3

cargo-fuzz: init at 0.5.3
This commit is contained in:
Jörg Thalheim 2018-05-08 07:43:40 +01:00 committed by GitHub
commit b1c467ad92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 1 deletions

View file

@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub, fetchurl, runCommand, rustPlatform }:
rustPlatform.buildRustPackage rec {
name = "cargo-fuzz-${version}";
version = "0.5.3"; # Note to self: on 0.5.4, remove the hand-added Cargo.lock
src =
let
source = fetchFromGitHub {
owner = "rust-fuzz";
repo = "cargo-fuzz";
rev = version;
sha256 = "1l452fnjw7i10nrd4y4rssi5d457vgjp6rhdr9cnq32bjhdkprrs";
};
cargo-lock = fetchurl {
url = "https://gist.githubusercontent.com/Ekleog/7d5b62d13b7207aafa4c37d1bbdf2de7/raw/c6027fc1c531947f4d6836a3c4cba1b3e24df24c/Cargo.lock";
sha256 = "0d7b6kxfbfvwksybzrihylamg2zv5fmsk9m6xshryhwipskzzvmd";
};
in
runCommand "cargo-fuzz-src" {} ''
cp -R ${source} $out
chmod +w $out
cp ${cargo-lock} $out/Cargo.lock
'';
cargoSha256 = "0ajm8qp8hi7kn7199ywv26cmjv13phxv72lz8kcq97hxg17x0dkk";
meta = with stdenv.lib; {
description = "Command line helpers for fuzzing";
homepage = https://github.com/rust-fuzz/cargo-fuzz;
license = with licenses; [ mit asl20 ];
maintainers = [ maintainers.ekleog ];
platforms = platforms.all;
};
}

View file

@ -6850,7 +6850,7 @@ with pkgs;
buildRustCrate = callPackage ../build-support/rust/build-rust-crate.nix { };
cargo-vendor = callPackage ../build-support/rust/cargo-vendor {};
cargo-vendor = callPackage ../build-support/rust/cargo-vendor { };
carnix = (callPackage ../build-support/rust/carnix.nix { }).carnix { };
@ -6875,6 +6875,8 @@ with pkgs;
cargo-edit = callPackage ../tools/package-management/cargo-edit { };
cargo-fuzz = callPackage ../development/tools/rust/cargo-fuzz { };
rainicorn = callPackage ../development/tools/rust/rainicorn { };
rustfmt = callPackage ../development/tools/rust/rustfmt { };
rustracer = callPackage ../development/tools/rust/racer { };