1{ buildGoPackage
2, lib
3, fetchFromGitHub
4}:
5
6# TODO(yl): should we package https://github.com/remyoudompheng/go-misc instead of
7# the standalone extract of deadcode from it?
8buildGoPackage rec {
9 pname = "deadcode-unstable";
10 version = "2016-07-24";
11 rev = "210d2dc333e90c7e3eedf4f2242507a8e83ed4ab";
12
13 goPackagePath = "github.com/tsenart/deadcode";
14 excludedPackages = "\\(cmd/fillswitch/test-fixtures\\)";
15
16 src = fetchFromGitHub {
17 inherit rev;
18
19 owner = "tsenart";
20 repo = "deadcode";
21 sha256 = "05kif593f4wygnrq2fdjhn7kkcpdmgjnykcila85d0gqlb1f36g0";
22 };
23
24 meta = with lib; {
25 description = "Very simple utility which detects unused declarations in a Go package";
26 homepage = "https://github.com/remyoudompheng/go-misc/tree/master/deadcode";
27 license = licenses.bsd3;
28 maintainers = with maintainers; [ kalbasit ];
29 platforms = platforms.linux ++ platforms.darwin;
30 };
31}