mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +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
|