1{ lib, rustPlatform, fetchFromGitHub }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "cargo-llvm-lines";
5 version = "0.4.29";
6
7 src = fetchFromGitHub {
8 owner = "dtolnay";
9 repo = pname;
10 rev = version;
11 hash = "sha256-8FpNUCOK0vAyO7f1Uy+BaqDcZ0GEFvp7meULHtUncNA=";
12 };
13
14 cargoHash = "sha256-uIB+fMSVZGZ7OTgiTEeozjPR6CuMsLgEbq/9//of6xo=";
15
16 meta = with lib; {
17 description = "Count the number of lines of LLVM IR across all instantiations of a generic function";
18 homepage = "https://github.com/dtolnay/cargo-llvm-lines";
19 changelog = "https://github.com/dtolnay/cargo-llvm-lines/releases/tag/${src.rev}";
20 license = with licenses; [ asl20 /* or */ mit ];
21 maintainers = with maintainers; [ figsoda ];
22 };
23}