1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/development/tools/goconst/default.nix
2018-11-02 22:04:42 -07:00

28 lines
673 B
Nix

{ buildGoPackage
, lib
, fetchFromGitHub
}:
buildGoPackage rec {
name = "goconst-${version}";
version = "1.1.0";
goPackagePath = "github.com/jgautheron/goconst";
excludedPackages = ''testdata'';
src = fetchFromGitHub {
owner = "jgautheron";
repo = "goconst";
rev = version;
sha256 = "0zhscvv9w54q1h2vs8xx3qkz98cf36qhxjvdq0xyz3qvn4vhnyw6";
};
meta = with lib; {
description = "Find in Go repeated strings that could be replaced by a constant";
homepage = https://github.com/jgautheron/goconst;
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}