about summary refs log tree commit diff
path: root/pkgs/development/tools/go-swagger
diff options
context:
space:
mode:
authorWael Nasreddine <wael.nasreddine@gmail.com>2020-06-18 07:10:54 -0700
committerGitHub <noreply@github.com>2020-06-18 07:10:54 -0700
commit46db244d2d3e2da47672fdd1239e1ba1f3c4523d (patch)
tree53bcbc9377d459a37877a32c7381926bb7d0a1e2 /pkgs/development/tools/go-swagger
parent2a19cff668dbdda8aa1a715cb3094abd9089d428 (diff)
downloadnixlib-46db244d2d3e2da47672fdd1239e1ba1f3c4523d.tar
nixlib-46db244d2d3e2da47672fdd1239e1ba1f3c4523d.tar.gz
nixlib-46db244d2d3e2da47672fdd1239e1ba1f3c4523d.tar.bz2
nixlib-46db244d2d3e2da47672fdd1239e1ba1f3c4523d.tar.lz
nixlib-46db244d2d3e2da47672fdd1239e1ba1f3c4523d.tar.xz
nixlib-46db244d2d3e2da47672fdd1239e1ba1f3c4523d.tar.zst
nixlib-46db244d2d3e2da47672fdd1239e1ba1f3c4523d.zip
go-swagger: init at 0.24.0 (#90682)
* go-swagger: init at 0.24.0

* Apply suggestions from code review

Co-authored-by: Jon <jonringer@users.noreply.github.com>

Co-authored-by: Jon <jonringer@users.noreply.github.com>
Diffstat (limited to 'pkgs/development/tools/go-swagger')
-rw-r--r--pkgs/development/tools/go-swagger/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/go-swagger/default.nix b/pkgs/development/tools/go-swagger/default.nix
new file mode 100644
index 000000000000..e2a0402348a1
--- /dev/null
+++ b/pkgs/development/tools/go-swagger/default.nix
@@ -0,0 +1,24 @@
+{ buildGoModule, fetchFromGitHub, lib }:
+
+buildGoModule rec {
+  pname = "go-swagger";
+  version = "0.24.0";
+
+  src = fetchFromGitHub {
+    owner = "go-swagger";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "051av25vnrcpvj9w6mqalwk7byw52m2dlh1m56y30xvm0ybbnayn";
+  };
+
+  vendorSha256 = "020z4izc8i4yhbbr8h2fn8bqbis9q9yfcrjnixd6rsiayw1brh4p";
+
+  subPackages = [ "cmd/swagger" ];
+
+  meta = with lib; {
+    description = "Golang implementation of Swagger 2.0, representation of your RESTful API";
+    homepage = "https://github.com/go-swagger/go-swagger";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ kalbasit ];
+  };
+}