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

27 lines
593 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform }:
2016-10-25 19:53:04 +02:00
with rustPlatform;
buildRustPackage rec {
2017-10-31 16:13:31 +01:00
version = "0.4.1";
2019-08-31 13:41:23 +02:00
pname = "loc";
2016-10-25 19:53:04 +02:00
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
};
cargoSha256 = "1fgv1kxiif48q9mm60ygn88r5nkxfyiacmvbgwp0jxiacv8r7779";
2016-10-25 19:53:04 +02:00
meta = with lib; {
homepage = "https://github.com/cgag/loc";
2016-10-25 19:53:04 +02:00
description = "Count lines of code quickly";
2021-01-23 18:15:07 +01:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
platforms = platforms.unix;
2016-10-25 19:53:04 +02:00
};
}