actually export flattenTree

This commit is contained in:
zimbatm 2020-07-22 10:42:18 +02:00
parent b0d0c72b08
commit 92ade60501
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7
1 changed files with 12 additions and 11 deletions

View File

@ -37,17 +37,6 @@ let
builtins.foldl' op { } systems builtins.foldl' op { } systems
; ;
# Returns the structure used by `nix app`
mkApp =
{ drv
, name ? drv.pname or drv.name
, exePath ? drv.passthru.exePath or "/bin/${name}"
}:
{
type = "app";
program = "${drv}${exePath}";
};
# Nix flakes insists on having a flat attribute set of derivations in # Nix flakes insists on having a flat attribute set of derivations in
# various places like the `packages` and `checks` attributes. # various places like the `packages` and `checks` attributes.
# #
@ -68,12 +57,24 @@ let
# # ... # # ...
# } # }
flattenTree = tree: import ./flattenTree.nix tree; flattenTree = tree: import ./flattenTree.nix tree;
# Returns the structure used by `nix app`
mkApp =
{ drv
, name ? drv.pname or drv.name
, exePath ? drv.passthru.exePath or "/bin/${name}"
}:
{
type = "app";
program = "${drv}${exePath}";
};
in in
{ {
inherit inherit
defaultSystems defaultSystems
eachDefaultSystem eachDefaultSystem
eachSystem eachSystem
flattenTree
mkApp mkApp
; ;