3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/misc/loc/default.nix

30 lines
700 B
Nix
Raw Normal View History

{ 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
};
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
cargoSha256 = "06iqzpg5jz1xd2amajvlf7yaz9kr3q2ipbhx71whvv9mwplmxmbi";
2016-10-25 18:53:04 +01:00
meta = with stdenv.lib; {
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;
maintainers = with stdenv.lib.maintainers; [ ];
platforms = platforms.unix;
2016-10-25 18:53:04 +01:00
};
}