about summary refs log tree commit diff
path: root/pkgs/development/tools/go-swag
diff options
context:
space:
mode:
authorStephenWithPH <StephenWithPH@users.noreply.github.com>2020-09-14 16:22:07 -0700
committerStephenWithPH <StephenWithPH@users.noreply.github.com>2020-09-14 16:22:07 -0700
commitfb779db80bd77046707c0567ead312a57063a9ba (patch)
tree2aab38f0cc5760420e6fea7a2404cf1600cd79e4 /pkgs/development/tools/go-swag
parent083041a6f8044dea486431c216cbfe5a45fdd71c (diff)
go-swag: init at 1.6.7
Diffstat (limited to 'pkgs/development/tools/go-swag')
-rw-r--r--pkgs/development/tools/go-swag/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/go-swag/default.nix b/pkgs/development/tools/go-swag/default.nix
new file mode 100644
index 0000000000000..0a0eb41d6131c
--- /dev/null
+++ b/pkgs/development/tools/go-swag/default.nix
@@ -0,0 +1,24 @@
+{ buildGoModule, fetchFromGitHub, lib }:
+
+buildGoModule rec {
+  pname = "go-swag";
+  version = "1.6.7";
+
+  src = fetchFromGitHub {
+    owner = "swaggo";
+    repo = "swag";
+    rev = "df209afeed2334a97c83aff34ea7abcad85c31f6";
+    sha256 = "17pmcfkcmgjvs4drs0fyhp2m39gw83s0ck3rdzdkgdhrbhva9ksx";
+  };
+
+  vendorSha256 = "1i2n2sz2hc89nf2fqfq3swldz0xwrnms4j9q0lrss5gm3bk49q7f";
+
+  subPackages = [ "cmd/swag" ];
+
+  meta = with lib; {
+    description = "Automatically generate RESTful API documentation with Swagger 2.0 for Go";
+    homepage = "https://github.com/swaggo/swag";
+    license = licenses.mit;
+    maintainers = with maintainers; [ stephenwithph ];
+  };
+}