2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2016-10-25 17:53:04 +00:00
|
|
|
|
|
|
|
with 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
|
|
|
};
|
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "1qfqhqimp56g34bir30zgl273yssrbmwf1h8h8yvdpzkybpd92gx";
|
2016-10-25 17:53:04 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/cgag/loc";
|
2016-10-25 17:53:04 +00:00
|
|
|
description = "Count lines of code quickly";
|
2021-01-23 17:15:07 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
2018-10-27 09:05:01 +00:00
|
|
|
platforms = platforms.unix;
|
2016-10-25 17:53:04 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|