2016-10-25 19:53:04 +02:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
2017-10-31 16:13:31 +01:00
|
|
|
version = "0.4.1";
|
2016-10-25 19:53:04 +02:00
|
|
|
name = "loc-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-10-30 21:45:04 +01:00
|
|
|
owner = "cgag";
|
2016-10-25 19:53:04 +02:00
|
|
|
repo = "loc";
|
2017-10-31 16:13:31 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0086asrx48qlmc484pjz5r5znli85q6qgpfbd81gjlzylj7f57gg";
|
2016-10-25 19:53:04 +02:00
|
|
|
};
|
|
|
|
|
2017-10-31 16:13:31 +01:00
|
|
|
cargoSha256 = "0y2ww48vh667kkyg9pyjwcbh7fxi41bjnkhwp749crjqn2abimrk";
|
2016-10-25 19:53:04 +02:00
|
|
|
|
|
|
|
meta = {
|
2017-11-10 22:13:27 +01:00
|
|
|
homepage = https://github.com/cgag/loc;
|
2016-10-25 19:53:04 +02:00
|
|
|
description = "Count lines of code quickly";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|