nixpkgs/pkgs/development/misc/loc/default.nix
2021-01-25 18:31:47 +01:00

27 lines
593 B
Nix

{ lib, fetchFromGitHub, rustPlatform }:
with rustPlatform;
buildRustPackage rec {
version = "0.4.1";
pname = "loc";
src = fetchFromGitHub {
owner = "cgag";
repo = "loc";
rev = "v${version}";
sha256 = "0086asrx48qlmc484pjz5r5znli85q6qgpfbd81gjlzylj7f57gg";
};
cargoSha256 = "1fgv1kxiif48q9mm60ygn88r5nkxfyiacmvbgwp0jxiacv8r7779";
meta = with lib; {
homepage = "https://github.com/cgag/loc";
description = "Count lines of code quickly";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
platforms = platforms.unix;
};
}