2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "0.4.1";
|
|
|
|
pname = "loc";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cgag";
|
|
|
|
repo = "loc";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0086asrx48qlmc484pjz5r5znli85q6qgpfbd81gjlzylj7f57gg";
|
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-/YnU7vLz37Y9gggGx+vKWvtxBH0fjBwXGc+UWyOG2OE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/cgag/loc";
|
|
|
|
description = "Count lines of code quickly";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "loc";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
2024-07-27 06:49:29 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|