forked from Fediversity/Fediversity
add resulting Nix value to default.nix outputs
this is practical for debugging and demonstration purposes
This commit is contained in:
parent
f71bc89921
commit
ef5594d963
|
@ -15,25 +15,22 @@ let
|
||||||
new // { types = prev.recursiveUpdate prev.types new.types; };
|
new // { types = prev.recursiveUpdate prev.types new.types; };
|
||||||
lib'' = lib.extend lib';
|
lib'' = lib.extend lib';
|
||||||
in
|
in
|
||||||
{
|
rec {
|
||||||
lib = import ./lib.nix { inherit lib; };
|
lib = import ./lib.nix { inherit lib; };
|
||||||
|
result = lib''.evalModules {
|
||||||
|
modules = [
|
||||||
|
./structure
|
||||||
|
./content
|
||||||
|
./presentation
|
||||||
|
{
|
||||||
|
_module.args = {
|
||||||
|
inherit pkgs;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
build =
|
inherit (result.config) build;
|
||||||
let
|
|
||||||
result = lib''.evalModules {
|
|
||||||
modules = [
|
|
||||||
./structure
|
|
||||||
./content
|
|
||||||
./presentation
|
|
||||||
{
|
|
||||||
_module.args = {
|
|
||||||
inherit pkgs;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in
|
|
||||||
result.config.build;
|
|
||||||
|
|
||||||
shell = pkgs.mkShellNoCC {
|
shell = pkgs.mkShellNoCC {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
|
Loading…
Reference in a new issue