All checks were successful
Test / Create distribution (push) Successful in 24s
Test / Sandbox (push) Successful in 46s
Test / Hakurei (push) Successful in 2m9s
Test / Sandbox (race detector) (push) Successful in 3m14s
Test / Planterette (push) Successful in 3m41s
Test / Hakurei (race detector) (push) Successful in 3m40s
Test / Flake checks (push) Successful in 1m18s
Signed-off-by: Ophestra <cat@gensokyo.uk>
31 lines
564 B
Nix
31 lines
564 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
pkg-config,
|
|
util-linux,
|
|
|
|
version,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "check-sandbox";
|
|
inherit version;
|
|
|
|
src = builtins.path {
|
|
name = "${pname}-src";
|
|
path = lib.cleanSource ../.;
|
|
filter = path: type: (type == "directory") || (type == "regular" && lib.hasSuffix ".go" path);
|
|
};
|
|
vendorHash = null;
|
|
|
|
buildInputs = [ util-linux ];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
preBuild = ''
|
|
go mod init hakurei.app/test/sandbox >& /dev/null
|
|
'';
|
|
|
|
postInstall = ''
|
|
mv $out/bin/tool $out/bin/hakurei-test
|
|
'';
|
|
}
|