2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
2016-10-25 18:53:04 +01:00
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
2017-10-31 15:13:31 +00:00
|
|
|
version = "0.4.1";
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "loc";
|
2016-10-25 18:53:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-10-30 20:45:04 +00:00
|
|
|
owner = "cgag";
|
2016-10-25 18:53:04 +01:00
|
|
|
repo = "loc";
|
2017-10-31 15:13:31 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0086asrx48qlmc484pjz5r5znli85q6qgpfbd81gjlzylj7f57gg";
|
2016-10-25 18:53:04 +01:00
|
|
|
};
|
|
|
|
|
2020-02-16 08:54:36 +00:00
|
|
|
cargoSha256 = "1fgv1kxiif48q9mm60ygn88r5nkxfyiacmvbgwp0jxiacv8r7779";
|
2016-10-25 18:53:04 +01:00
|
|
|
|
2018-10-27 10:05:01 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-11-10 21:13:27 +00:00
|
|
|
homepage = https://github.com/cgag/loc;
|
2016-10-25 18:53:04 +01:00
|
|
|
description = "Count lines of code quickly";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2018-04-06 09:57:19 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ];
|
2018-10-27 10:05:01 +01:00
|
|
|
platforms = platforms.unix;
|
2016-10-25 18:53:04 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|