2021-01-25 08:26:54 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
}:
|
2016-10-25 17:53:04 +00:00
|
|
|
|
2023-04-17 20:27:54 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2017-10-31 15:13:31 +00:00
|
|
|
version = "0.4.1";
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "loc";
|
2016-10-25 17:53:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-10-30 20:45:04 +00:00
|
|
|
owner = "cgag";
|
2016-10-25 17:53:04 +00:00
|
|
|
repo = "loc";
|
2017-10-31 15:13:31 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0086asrx48qlmc484pjz5r5znli85q6qgpfbd81gjlzylj7f57gg";
|
2016-10-25 17:53:04 +00:00
|
|
|
};
|
|
|
|
|
2024-07-03 12:29:10 +00:00
|
|
|
cargoHash = "sha256-/YnU7vLz37Y9gggGx+vKWvtxBH0fjBwXGc+UWyOG2OE=";
|
2016-10-25 17:53:04 +00:00
|
|
|
|
2024-07-25 23:20:38 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/cgag/loc";
|
2024-10-04 19:35:12 +00:00
|
|
|
changelog = "https://github.com/cgag/loc/blob/v${version}/CHANGELOG.md";
|
2016-10-25 17:53:04 +00:00
|
|
|
description = "Count lines of code quickly";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "loc";
|
2021-01-23 17:15:07 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-05-15 04:06:12 +00:00
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
2024-07-25 23:20:38 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2016-10-25 17:53:04 +00:00
|
|
|
};
|
|
|
|
}
|