From 42cda97c500b54ad2e8617d515cc198a027dceaa Mon Sep 17 00:00:00 2001 From: milran Date: Tue, 31 Jan 2023 15:05:30 +0900 Subject: [PATCH] gqlgenc: init at 0.11.3 Signed-off-by: milran --- pkgs/development/tools/gqlgenc/default.nix | 24 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/tools/gqlgenc/default.nix diff --git a/pkgs/development/tools/gqlgenc/default.nix b/pkgs/development/tools/gqlgenc/default.nix new file mode 100644 index 000000000000..4f81b849a9ef --- /dev/null +++ b/pkgs/development/tools/gqlgenc/default.nix @@ -0,0 +1,24 @@ +{ buildGoModule, fetchFromGitHub, lib }: + +buildGoModule rec { + pname = "gqlgenc"; + version = "0.11.3"; + + src = fetchFromGitHub { + owner = "yamashou"; + repo = "gqlgenc"; + rev = "v${version}"; + sha256 = "sha256-yMM6LR5Zviwr1OduSUxsSzdzrb+Lv5ILkVjXWD0b0FU="; + }; + + excludedPackages = [ "example" ]; + + vendorHash = "sha256-d95w9cApLyYu+OOP4UM5/+4DDU2LqyHU8E3wSTW8c7Q="; + + meta = with lib; { + description = "Go tool for building GraphQL client with gqlgen"; + homepage = "https://github.com/Yamashou/gqlgenc"; + license = licenses.mit; + maintainers = with maintainers; [ milran ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e49545db3510..66a90561c3d3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26283,6 +26283,8 @@ with pkgs; gotestsum = callPackage ../development/tools/gotestsum { }; + gqlgenc = callPackage ../development/tools/gqlgenc { }; + impl = callPackage ../development/tools/impl { }; moq = callPackage ../development/tools/moq { };