diff options
author | wucke13 <wucke13@gmail.com> | 2022-09-24 21:35:28 +0200 |
---|---|---|
committer | Wanja Zaeske <wanja.zaeske@dlr.de> | 2022-11-01 09:57:28 +0100 |
commit | ce38b81ecd2978de346272ac9aa71fb883098c23 (patch) | |
tree | 3d137f9bc12ba90e6ee400b1c052a682e84e8b94 /pkgs/development/tools/rust/cargo-llvm-cov | |
parent | 97791f270db9aa8c2b4543cb9787c62ed242a7af (diff) |
cargo-llvm-cov: init at 0.5.0
Diffstat (limited to 'pkgs/development/tools/rust/cargo-llvm-cov')
-rw-r--r-- | pkgs/development/tools/rust/cargo-llvm-cov/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-llvm-cov/default.nix b/pkgs/development/tools/rust/cargo-llvm-cov/default.nix new file mode 100644 index 0000000000000..bf55e638bdefc --- /dev/null +++ b/pkgs/development/tools/rust/cargo-llvm-cov/default.nix @@ -0,0 +1,44 @@ +{ stdenv +, lib +, fetchzip +, rustPlatform +}: + +rustPlatform.buildRustPackage rec { + pname = "cargo-llvm-cov"; + version = "0.5.0"; + + src = fetchzip { + url = "https://crates.io/api/v1/crates/${pname}/${version}/download#${pname}-${version}.tar.gz"; + sha256 = "sha256-ifnwiOuFnpryYxLgescpxN8CzgFzSZlY+RlbyW7ND6g="; + }; + cargoSha256 = "sha256-11xNgiOw0qysTWpoKAXQ5gx1uJSAsp+aDDir0zpkpeQ="; + + # skip tests which require llvm-tools-preview + checkFlags = [ + "--skip bin_crate" + "--skip cargo_config" + "--skip clean_ws" + "--skip instantiations" + "--skip merge" + "--skip merge_failure_mode_all" + "--skip no_test" + "--skip open_report" + "--skip real1" + "--skip show_env" + "--skip virtual1" + ]; + + meta = rec { + homepage = "https://github.com/taiki-e/${pname}"; + changelog = homepage + "/blob/v${version}/CHANGELOG.md"; + description = "Cargo subcommand to easily use LLVM source-based code coverage"; + longDescription = '' + In order for this to work, you either need to run `rustup component add llvm- + tools-preview` or install the `llvm-tools-preview` component using your Nix + library (e.g. nixpkgs-mozilla, or rust-overlay) + ''; + license = with lib.licenses; [ asl20 /* or */ mit ]; + maintainers = with lib.maintainers; [ wucke13 ]; + }; +} |