Unverified Commit 1bda1e50 authored by Paul Meyer's avatar Paul Meyer Committed by GitHub
Browse files

gqlgen: init at 0.17.63 (#374121)

parents d3a5ff69 b07c183b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -21318,6 +21318,12 @@
    githubId = 49844593;
    name = "skovati";
  };
  skowalak = {
    github = "skowalak";
    githubId = 26260032;
    name = "Sebastian Kowalak";
    matrix = "@scl:tchncs.de";
  };
  skyesoss = {
    name = "Skye Soss";
    matrix = "@skyesoss:matrix.org";
+47 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildGoModule,
  versionCheckHook,
}:

let
  version = "0.17.63";
in
buildGoModule {
  pname = "gqlgen";
  inherit version;

  src = fetchFromGitHub {
    owner = "99designs";
    repo = "gqlgen";
    tag = "v${version}";
    hash = "sha256-J9+pleHdbQMHP/Aq9Pl6ise6PDvRqxQ72Iq7SNxgMws=";
  };

  vendorHash = "sha256-hPUWYOfCx+kW2dJsjkCE/7bwofnGdQbDTvfZ877/pCk=";

  subPackages = [ "." ];

  env.CGO_ENABLED = 0;

  checkFlags = [
    "-skip=^TestGenerate$" # skip tests that want to run `go mod tidy`
  ];

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  doInstallCheck = true;

  versionCheckProgramArg = "version";

  meta = {
    homepage = "https://github.com/99designs/gqlgen";
    changelog = "https://github.com/99designs/gqlgen/releases/tag/v${version}";
    description = "go generate based graphql server library";
    license = lib.licenses.mit;
    mainProgram = "gqlgen";
    maintainers = with lib.maintainers; [ skowalak ];
  };
}