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