documize-community: add passthru.tests to reference VM-test

This commit is contained in:
Maximilian Bosch 2020-04-15 22:13:46 +02:00
parent b7c3c3f5cc
commit 2da253a7de
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs }:
{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs, nixosTests }:
buildGoModule rec {
pname = "documize-community";
@ -17,6 +17,8 @@ buildGoModule rec {
subPackages = [ "edition/community.go" ];
passthru.tests = { inherit (nixosTests) documize; };
postInstall = ''
# `buildGoModule` calls `go install` (without `go build` first), so
# `-o bin/documize` doesn't work.