depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-llvm-lines/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

23 lines
757 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "cargo-llvm-lines";
version = "0.4.36";
src = fetchFromGitHub {
owner = "dtolnay";
repo = pname;
rev = version;
hash = "sha256-kj5dsZWf1dp6NG9AIj5GdRoXIb6J3bSXnJNNEVAKnaM=";
};
cargoHash = "sha256-iZtT1ywFIgPhBnW4losd1J+WHUtzgW47657vGi6mI7I=";
meta = with lib; {
description = "Count the number of lines of LLVM IR across all instantiations of a generic function";
homepage = "https://github.com/dtolnay/cargo-llvm-lines";
changelog = "https://github.com/dtolnay/cargo-llvm-lines/releases/tag/${src.rev}";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ figsoda matthiasbeyer ];
};
}