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

View File

@ -37,17 +37,6 @@ let
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
# various places like the `packages` and `checks` attributes.
#
@ -68,12 +57,24 @@ let
# # ...
# }
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
{
inherit
defaultSystems
eachDefaultSystem
eachSystem
flattenTree
mkApp
;