nixpkgs/pkgs/build-support/setup-hooks/postgresql-test-hook/default.nix
Shamrock Lee ba895a7da8 trivial-builders.nix: Add input argument passthru to makeSetupHook
One significant use case is adding `passthru.tests` to setup-hooks,
and help increase test coverage for mission-critical setup-hooks.

As `meta`, `passthru` doesn't go into the build script directly.
However, passing an empty set to `passthru` breaks nixpkgs-review
and OfBorg tests, so pass it only when specified.
2022-08-13 04:20:12 +08:00

9 lines
177 B
Nix

{ callPackage, makeSetupHook }:
makeSetupHook {
name = "postgresql-test-hook";
passthru.tests = {
simple = callPackage ./test.nix { };
};
} ./postgresql-test-hook.sh