ba895a7da8
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.
8 lines
177 B
Nix
8 lines
177 B
Nix
{ callPackage, makeSetupHook }:
|
|
|
|
makeSetupHook {
|
|
name = "postgresql-test-hook";
|
|
passthru.tests = {
|
|
simple = callPackage ./test.nix { };
|
|
};
|
|
} ./postgresql-test-hook.sh
|