1 { lib, rustPlatform, fetchFromGitHub }:
3 rustPlatform.buildRustPackage rec {
4 pname = "cargo-llvm-lines";
7 src = fetchFromGitHub {
11 hash = "sha256-9l6WkPVcc1BTRjmHa3+2Y1buLdHC5VIvpGys0fDwldY=";
14 cargoHash = "sha256-MbjV3O9yDC8GHWdhWh4/sO+QfAd3kw3K5wLkZ8OlXIU=";
17 description = "Count the number of lines of LLVM IR across all instantiations of a generic function";
18 mainProgram = "cargo-llvm-lines";
19 homepage = "https://github.com/dtolnay/cargo-llvm-lines";
20 changelog = "https://github.com/dtolnay/cargo-llvm-lines/releases/tag/${src.rev}";
21 license = with licenses; [ asl20 /* or */ mit ];
22 maintainers = with maintainers; [ figsoda matthiasbeyer ];