diff options
author | Wael M. Nasreddine <wael.nasreddine@gmail.com> | 2018-11-02 09:36:24 -0700 |
---|---|---|
committer | Wael M. Nasreddine <wael.nasreddine@gmail.com> | 2018-11-02 21:58:09 -0700 |
commit | 9795ad34ddffffe9a0389d29a0a001bcf61e082b (patch) | |
tree | 0421fc0182974f64fae6aaf99f61e1759d98217a /pkgs/development/tools/deadcode | |
parent | f5e493927786805280967c8f04d1a5d5c01c8065 (diff) |
deadcode: init at unstable 2016-07-24
Diffstat (limited to 'pkgs/development/tools/deadcode')
-rw-r--r-- | pkgs/development/tools/deadcode/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/tools/deadcode/default.nix b/pkgs/development/tools/deadcode/default.nix new file mode 100644 index 000000000000..fbed4e905cfc --- /dev/null +++ b/pkgs/development/tools/deadcode/default.nix @@ -0,0 +1,31 @@ +{ buildGoPackage +, lib +, fetchFromGitHub +}: + +# TODO(yl): should we package https://github.com/remyoudompheng/go-misc instead of +# the standalone extract of deadcode from it? +buildGoPackage rec { + name = "deadcode-unstable-${version}"; + version = "2016-07-24"; + rev = "210d2dc333e90c7e3eedf4f2242507a8e83ed4ab"; + + goPackagePath = "github.com/tsenart/deadcode"; + excludedPackages = "\\(cmd/fillswitch/test-fixtures\\)"; + + src = fetchFromGitHub { + inherit rev; + + owner = "tsenart"; + repo = "deadcode"; + sha256 = "05kif593f4wygnrq2fdjhn7kkcpdmgjnykcila85d0gqlb1f36g0"; + }; + + meta = with lib; { + description = "deadcode is a very simple utility which detects unused declarations in a Go package."; + homepage = https://github.com/remyoudompheng/go-misc/tree/master/deadcode; + license = licenses.bsd3; + maintainers = with maintainers; [ kalbasit ]; + platforms = platforms.linux ++ platforms.darwin; + }; +} |