nixpkgs/pkgs/by-name/go/go-judge/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
780 B
Nix
Raw Normal View History

2023-11-11 02:42:05 +00:00
{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "go-judge";
2024-05-04 12:58:20 +00:00
version = "1.8.4";
2023-11-11 02:42:05 +00:00
src = fetchFromGitHub {
owner = "criyle";
repo = pname;
rev = "v${version}";
2024-05-04 12:58:20 +00:00
hash = "sha256-dViiTTT/OjgAXecViuBdWOycCpn97g+Lr1ZHubfVExw=";
2023-11-11 02:42:05 +00:00
};
2024-05-04 12:58:20 +00:00
vendorHash = "sha256-xnTM7QN+ZJP3iPf+k8HgFYMFv6W6BboM5Yh7938s9lM=";
2023-11-11 02:42:05 +00:00
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 ];
};
}