62eb7ebeba
Added utilities to generate export statements and definitions for zsh scripts. Currently, there is only lib.shell which generates export statements in bash syntax. However, this does not allow to generate export statements for zsh arrays (syntax: NAME=(elem1 elem2 ...) ), which would be the natural representation of lists in the nix language.
22 lines
465 B
Nix
22 lines
465 B
Nix
{ lib }:
|
|
|
|
{
|
|
dag =
|
|
let
|
|
d = import ./dag.nix { inherit lib; };
|
|
in
|
|
{
|
|
empty = d.emptyDag;
|
|
isDag = d.isDag;
|
|
topoSort = d.dagTopoSort;
|
|
map = d.dagMap;
|
|
entryAnywhere = d.dagEntryAnywhere;
|
|
entryBetween = d.dagEntryBetween;
|
|
entryAfter = d.dagEntryAfter;
|
|
entryBefore = d.dagEntryBefore;
|
|
};
|
|
|
|
shell = import ./shell.nix { inherit lib; };
|
|
zsh = import ./zsh.nix { inherit lib; };
|
|
}
|