mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 08:09:45 +01:00
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.
21 lines
465 B
Nix
21 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; };
|
|
}
|