nixpkgs-suyu/pkgs/development/misc/loc/default.nix

27 lines
680 B
Nix
Raw Normal View History

2016-10-25 19:53:04 +02:00
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
with rustPlatform;
buildRustPackage rec {
version = "2017-06-23";
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";
rev = "bbea575f56879ef614d57a42a6b79fd45b9a8b38";
sha256 = "0agyhi55rh248fmlsip4fi1iw4xv3433q7bcb2lpjfnjpzxxlvfn";
2016-10-25 19:53:04 +02:00
};
cargoSha256 = "0f3i8av9g19r2nhr9m8ca8s23kq294c5kqyvx155l6p76r7a9kvb";
2016-10-25 19:53:04 +02:00
meta = {
homepage = http://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;
};
}