summary refs log tree commit diff
path: root/pkgs/tools/misc/unparam
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@sap.com>2022-02-10 17:05:22 +0100
committerSandro Jäckel <sandro.jaeckel@sap.com>2022-02-10 17:06:43 +0100
commitd2937f0dbef162f4354ac6efad1b0ecc435000f9 (patch)
tree23eee3b955a267bf9df3b920a5a11912eb3b237c /pkgs/tools/misc/unparam
parent1882c6b7368fd284ad01b0a5b5601ef136321292 (diff)
unparam: init at unstable-2021-12-14
Diffstat (limited to 'pkgs/tools/misc/unparam')
-rw-r--r--pkgs/tools/misc/unparam/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/misc/unparam/default.nix b/pkgs/tools/misc/unparam/default.nix
new file mode 100644
index 0000000000000..5840a0d82be8a
--- /dev/null
+++ b/pkgs/tools/misc/unparam/default.nix
@@ -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 ];
+  };
+}