Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 32 lines 1.0 kB view raw
1{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "tokei"; 5 version = "12.1.2"; 6 7 src = fetchFromGitHub { 8 owner = "XAMPPRocky"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-jqDsxUAMD/MCCI0hamkGuCYa8rEXNZIR8S+84S8FbgI="; 12 }; 13 14 cargoSha256 = "sha256-U7Bode8qwDsNf4FVppfEHA9uiOFz74CtKgXG6xyYlT8="; 15 16 buildInputs = lib.optionals stdenv.isDarwin [ 17 libiconv Security 18 ]; 19 20 # enable all output formats 21 buildFeatures = [ "all" ]; 22 23 meta = with lib; { 24 description = "A program that allows you to count your code, quickly"; 25 longDescription = '' 26 Tokei is a program that displays statistics about your code. Tokei will show number of files, total lines within those files and code, comments, and blanks grouped by language. 27 ''; 28 homepage = "https://github.com/XAMPPRocky/tokei"; 29 license = with licenses; [ asl20 /* or */ mit ]; 30 maintainers = with maintainers; [ gebner lilyball ]; 31 }; 32}