Unverified Commit 65d0a439 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #266576 from criyle/go-judge

go-judge: init at 1.8.0
parents db86bc5c 3290ef64
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3692,6 +3692,12 @@
    githubId = 1222362;
    name = "Matías Lang";
  };
  criyle = {
    email = "i+nixos@goj.ac";
    name = "Yang Gao";
    githubId = 6821729;
    github = "criyle";
  };
  CRTified = {
    email = "carl.schneider+nixos@rub.de";
    matrix = "@schnecfk:ruhr-uni-bochum.de";
+36 −0
Original line number Diff line number Diff line
{ buildGoModule
, fetchFromGitHub
, lib
}:

buildGoModule rec {
  pname = "go-judge";
  version = "1.8.0";

  src = fetchFromGitHub {
    owner = "criyle";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-iKSOD/jh7NgGUNeQxFqlZDcctUXBDC1Tjxsm0Q2iZ3I=";
  };

  vendorHash = "sha256-GVsRflqqt+PwVGWaNGMH4prKQ5pWqPRlsTBJZtC+7zo=";

  tags = [ "nomsgpack" ];

  subPackages = [ "cmd/go-judge" ];

  preBuild = ''
    echo v${version} > ./cmd/go-judge/version/version.txt
  '';

  CGO_ENABLED = 0;

  meta = with lib; {
    description = "High performance sandbox service based on container technologies";
    homepage = "https://github.com/criyle/go-judge";
    license = licenses.mit;
    mainProgram = "go-judge";
    maintainers = with maintainers; [ criyle ];
  };
}