2016-10-25 18:53:04 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
2016-10-30 20:45:04 +00:00
|
|
|
version = "0.3.3";
|
2016-10-25 18:53:04 +01:00
|
|
|
name = "loc-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-10-30 20:45:04 +00:00
|
|
|
owner = "cgag";
|
2016-10-25 18:53:04 +01:00
|
|
|
repo = "loc";
|
2016-10-30 20:45:04 +00:00
|
|
|
rev = "e2dfe2c1452f25f58974b545292b11dc450afd3d";
|
|
|
|
sha256 = "1kp5iawig6304gs1289aivgsq44zhnn0ykqv9ymwpvj0g12l4l8r";
|
2016-10-25 18:53:04 +01:00
|
|
|
};
|
|
|
|
|
2016-10-30 20:45:04 +00:00
|
|
|
depsSha256 = "01jww6d4dzb5pq6vcrp3xslhxic0vp0gicsddda4adzqg1lab8c2";
|
2016-10-25 18:53:04 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://github.com/cgag/loc";
|
|
|
|
description = "Count lines of code quickly";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|