pgweb: fix tests

Register NixOS tests from https://github.com/NixOS/nixpkgs/pull/382268
in passthru.tests so they automatically run when the package version
is updated.

Refs https://github.com/Thaigersprint/thaigersprint-2025/issues/1
This commit is contained in:
Neyts Zupan
2025-02-15 19:08:25 +07:00
parent 534b287051
commit f6a54e46f8
+8 -4
View File
@@ -4,6 +4,7 @@
fetchFromGitHub,
testers,
pgweb,
nixosTests,
}:
buildGoModule rec {
@@ -41,10 +42,13 @@ buildGoModule rec {
"${builtins.concatStringsSep "|" skippedTests}"
];
passthru.tests.version = testers.testVersion {
version = "v${version}";
package = pgweb;
command = "pgweb --version";
passthru.tests = {
version = testers.testVersion {
version = "v${version}";
package = pgweb;
command = "pgweb --version";
};
integration_test = nixosTests.pgweb;
};
meta = with lib; {