depot/third_party/nixpkgs/pkgs/by-name/go/go-judge/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
780 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "go-judge";
version = "1.8.5";
src = fetchFromGitHub {
owner = "criyle";
repo = pname;
rev = "v${version}";
hash = "sha256-yvuljBNPkAsTJ7jT1BrInTfUlBuE8zSV60MBWuIlW5I=";
};
vendorHash = "sha256-LvKLhC9I/hJSIP3zRkJAYNvTFLiNTTu87Fe4DDTWnMo=";
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 ];
};
}