Merge branch 'master' into staging
This commit is contained in:
35
pkgs/development/tools/misc/loccount/default.nix
Normal file
35
pkgs/development/tools/misc/loccount/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv, lib, buildGoPackage, fetchFromGitLab }:
|
||||
buildGoPackage rec {
|
||||
name = "loccount-${version}";
|
||||
version = "1.0";
|
||||
|
||||
goPackagePath = "gitlab.com/esr/loccount";
|
||||
excludedPackages = "tests";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "esr";
|
||||
repo = "loccount";
|
||||
rev = version;
|
||||
sha256 = "081wf7fckn76m4x0jwq4h2fsbhpb6f67dha77ni3p6wg7q6sihqx";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Re-implementation of sloccount in Go";
|
||||
longDescription = ''
|
||||
loccount is a re-implementation of David A. Wheeler's sloccount tool
|
||||
in Go. It is faster and handles more different languages. Because
|
||||
it's one source file in Go, it is easier to maintain and extend than the
|
||||
multi-file, multi-language implementation of the original.
|
||||
|
||||
The algorithms are largely unchanged and can be expected to produce
|
||||
identical numbers for languages supported by both tools. Python is
|
||||
an exception; loccount corrects buggy counting of single-quote multiline
|
||||
literals in sloccount 2.26.
|
||||
'';
|
||||
homepage="https://gitlab.com/esr/loccount";
|
||||
downloadPage="https://gitlab.com/esr/loccount/tree/master";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ calvertvl ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -1,16 +1,17 @@
|
||||
{ stdenv, fetchurl, rustPlatform }:
|
||||
{ stdenv, fetchFromGitHub, rustPlatform }:
|
||||
|
||||
with rustPlatform;
|
||||
|
||||
buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage rec {
|
||||
name = "tokei-${version}";
|
||||
version = "4.0.0";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Aaronepower/tokei/archive/${version}.tar.gz";
|
||||
sha256 = "1c7z3dgxr76dq6cvan3hgqlkcv61gmg6fkv6b98viymh4fy9if68";
|
||||
version = "6.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Aaronepower";
|
||||
repo = "tokei";
|
||||
rev = "v${version}";
|
||||
sha256 = "1j8k2i25c989mf15jwy4a4vazjc7x7pm8zywycg8xvv4ik1im7m7";
|
||||
};
|
||||
|
||||
depsSha256 = "0v4gplk7mkkik9vr1lqsr0yl1kqkqh14ncw95yb9iv7hcxvmcqn3";
|
||||
depsSha256 = "184x6lwma3lawr2dcc7ivkp1j049af9w040dyzca6i56i2s9998p";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
Reference in New Issue
Block a user