mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
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.
9 lines
177 B
Nix
9 lines
177 B
Nix
{ callPackage, makeSetupHook }:
|
|
|
|
makeSetupHook {
|
|
name = "postgresql-test-hook";
|
|
passthru.tests = {
|
|
simple = callPackage ./test.nix { };
|
|
};
|
|
} ./postgresql-test-hook.sh
|