@@ -0,0 +1,22 @@
1+{ lib, rustPlatform, fetchFromGitHub }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "cargo-llvm-lines";
5+ version = "0.4.11";
6+
7+ src = fetchFromGitHub {
8+ owner = "dtolnay";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "1p1agxsarkhw1mlqxawb2pj0fvsdyvi1rpp11p2k7fm341z1j71p";
12+ };
13+
14+ cargoSha256 = "1b5py9md3lkqjyn9jkl6bdynfri0yvqvrfj2frbps0hqbxiv30jl";
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+ license = with licenses; [ asl20 /* or */ mit ];
20+ maintainers = with maintainers; [ figsoda ];
21+ };
22+}