mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 16:21:24 +01:00
Alternative to this would be just running 'go test' and pointing it at the complement source code when we want to do a test run. This would mean that we can't cache the unit test build, and would have to include the 'olm' input in the devshell.
33 lines
718 B
Nix
33 lines
718 B
Nix
# Dependencies (keep sorted)
|
|
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, olm
|
|
}:
|
|
|
|
buildGoModule {
|
|
name = "complement";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "matrix-org";
|
|
repo = "complement";
|
|
rev = "5b72981ea3de814a2c41e010dbc0a2cffcbd2e79";
|
|
hash = "sha256-kSZcuXHHRsq6Vfv2rDBq682VdUkeRWse944fR25Zc0A=";
|
|
};
|
|
|
|
vendorHash = "sha256-mNt6lI4ppVjZC5UMsNqEDHQ0kjXutEFZTCMvXwp24ew=";
|
|
|
|
buildInputs = [ olm ];
|
|
|
|
doCheck = false;
|
|
postBuild = ''
|
|
# compiles the tests into a binary
|
|
go test -c ./tests -o "$GOPATH/bin/complement.test"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Matrix compliance test suite";
|
|
homepage = "https://github.com/matrix-org/complement";
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|