2021-09-22 15:38:15 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-llvm-lines";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.4.37";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dtolnay";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-9l6WkPVcc1BTRjmHa3+2Y1buLdHC5VIvpGys0fDwldY=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-MbjV3O9yDC8GHWdhWh4/sO+QfAd3kw3K5wLkZ8OlXIU=";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Count the number of lines of LLVM IR across all instantiations of a generic function";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cargo-llvm-lines";
|
2021-09-22 15:38:15 +00:00
|
|
|
homepage = "https://github.com/dtolnay/cargo-llvm-lines";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/dtolnay/cargo-llvm-lines/releases/tag/${src.rev}";
|
2021-09-22 15:38:15 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with maintainers; [ figsoda matthiasbeyer ];
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
}
|