2025-10-04 09:34:19 -07:00
|
|
|
{ combinators, lib, ... }:
|
|
|
|
|
let
|
|
|
|
|
inherit (combinators) compose add-path;
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
sig = "[Package] -> Permission";
|
|
|
|
|
doc = ''
|
|
|
|
|
Adds the packages' `bin` directory to `$PATH`.
|
|
|
|
|
'';
|
2026-02-26 12:32:34 -08:00
|
|
|
impl =
|
|
|
|
|
pkgsToAdd:
|
|
|
|
|
compose (
|
|
|
|
|
builtins.map (pkg: add-path "${lib.getBin pkg}/bin") pkgsToAdd
|
|
|
|
|
++ [
|
|
|
|
|
(
|
|
|
|
|
state:
|
|
|
|
|
state
|
|
|
|
|
// {
|
|
|
|
|
additionalRuntimeClosures = state.additionalRuntimeClosures ++ (map toString pkgsToAdd);
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
]
|
|
|
|
|
);
|
2025-10-04 09:34:19 -07:00
|
|
|
}
|