gocyclo: 2015-02-08 -> 0.4.0 (#157227)
We're pulling from a random fork, so switch to the actual upstream. Also change to use buildGoModule instead of buildGoPackage. Co-Authored-By: Martin <stackshadow@evilbrain.de>
This commit is contained in:
parent
e2ec2865d4
commit
b8f6ce151a
|
@ -1,28 +1,25 @@
|
||||||
{ buildGoPackage
|
{ buildGoModule
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "gocyclo-unstable";
|
pname = "gocyclo";
|
||||||
version = "2015-02-08";
|
version = "0.4.0";
|
||||||
rev = "aa8f8b160214d8dfccfe3e17e578dd0fcc6fede7";
|
|
||||||
|
|
||||||
goPackagePath = "github.com/alecthomas/gocyclo";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
inherit rev;
|
owner = "fzipp";
|
||||||
|
|
||||||
owner = "alecthomas";
|
|
||||||
repo = "gocyclo";
|
repo = "gocyclo";
|
||||||
sha256 = "094rj97q38j53lmn2scshrg8kws8c542yq5apih1ahm9wdkv8pxr";
|
rev = "v${version}";
|
||||||
|
sha256 = "1s9m5m5p76wcxi5n4diz891kd5db4ll21fsh9fnvvf9w7yrmgdw2";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Calculate cyclomatic complexities of functions in Go source code";
|
description = "Calculate cyclomatic complexities of functions in Go source code";
|
||||||
homepage = "https://github.com/alecthomas/gocyclo";
|
homepage = "https://github.com/fzipp/gocyclo";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ kalbasit ];
|
maintainers = with maintainers; [ kalbasit ];
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue