3
0
Fork 0
forked from mirrors/nixpkgs

deadcode: init at unstable 2016-07-24

This commit is contained in:
Wael M. Nasreddine 2018-11-02 09:36:24 -07:00
parent f5e4939277
commit 9795ad34dd
No known key found for this signature in database
GPG key ID: 82AE0A31B33CEFCF
2 changed files with 33 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -122,6 +122,8 @@ with pkgs;
inherit dhall-nix; inherit dhall-nix;
}; };
deadcode = callPackage ../development/tools/deadcode { };
diffPlugins = (callPackage ../build-support/plugins.nix {}).diffPlugins; diffPlugins = (callPackage ../build-support/plugins.nix {}).diffPlugins;
dieHook = makeSetupHook {} ../build-support/setup-hooks/die.sh; dieHook = makeSetupHook {} ../build-support/setup-hooks/die.sh;