Merge pull request #158985 from SuperSandro2000/unparam
This commit is contained in:
commit
eb923275fa
2 changed files with 29 additions and 0 deletions
27
pkgs/tools/misc/unparam/default.nix
Normal file
27
pkgs/tools/misc/unparam/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "unparam";
|
||||
version = "unstable-2021-12-14";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mvdan";
|
||||
repo = "unparam";
|
||||
rev = "d0ef000c54e5fbf955d67422b0495b9f29b354da";
|
||||
sha256 = "sha256-fH/LcshpOk+UFfQ5dE2eHi6Oi5cm8umeXoyHJvhpAbE=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-pfIxWvJYAus4DShTcBI1bwn/Q2c5qWvCwPCwfUsv8c0=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Find unused parameters in Go";
|
||||
homepage = "https://github.com/mvdan/unparam";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
|
@ -4214,6 +4214,8 @@ with pkgs;
|
|||
|
||||
unionfs-fuse = callPackage ../tools/filesystems/unionfs-fuse { };
|
||||
|
||||
unparam = callPackage ../tools/misc/unparam { };
|
||||
|
||||
inherit (nodePackages) uppy-companion;
|
||||
|
||||
usb-modeswitch = callPackage ../development/tools/misc/usb-modeswitch { };
|
||||
|
|
Loading…
Reference in a new issue