Files
nixpkgs/doc/hooks/guileImportsCheckHook.section.md
Ethan Carter Edwards 3564c9c95b doc/guileImportsCheckHook: init hook docs in manual
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2026-09-22 13:44:34 -04:00

471 B

guileImportsCheckHook

This hook checks if a guile package can be imported. The hook is automatically propagated by guile, so using it is as simple as:

{
  lib,
  stdenv,
  guile,
  # ...
}:

stdenv.mkDerivation (finalAttrs: {
  # ...

  nativeBuildInputs = [ guile ];

  guileImportsCheck = [
    "package"
  ];

  # ...
})

The guileImportsCheckHook package can also included manually in nativeBuildInputs if one desires.