* This config.system.build.system thing doesn't seem to be used.
svn path=/nixos/branches/modular-nixos/; revision=15730
This commit is contained in:
parent
d4a87dd5e2
commit
af07eae056
|
@ -2,25 +2,18 @@
|
||||||
# TODO: split it to make it readable.
|
# TODO: split it to make it readable.
|
||||||
{pkgs, config, ...}:
|
{pkgs, config, ...}:
|
||||||
|
|
||||||
|
with pkgs.lib;
|
||||||
|
|
||||||
###### interface
|
###### interface
|
||||||
let
|
let
|
||||||
inherit (pkgs.lib) mkOption;
|
|
||||||
|
|
||||||
option = {
|
option = {
|
||||||
system = {
|
system = {
|
||||||
build = mkOption {
|
build = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
description = ''
|
description = ''
|
||||||
Attribute set of derivation used to setup the system. The system
|
Attribute set of derivations used to setup the system.
|
||||||
is built by aggregating all derivations.
|
|
||||||
'';
|
'';
|
||||||
apply = components: components // {
|
|
||||||
# all components have to build directories
|
|
||||||
result = pkgs.buildEnv {
|
|
||||||
name = "system";
|
|
||||||
paths = pkgs.lib.mapRecordFlatten (n: v: v) components;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
shell = mkOption {
|
shell = mkOption {
|
||||||
|
@ -39,11 +32,6 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
let
|
|
||||||
inherit (pkgs.stringsWithDeps) noDepEntry fullDepEntry packEntry;
|
|
||||||
inherit (pkgs.lib) mapRecordFlatten;
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
require = [
|
require = [
|
||||||
option
|
option
|
||||||
|
|
Loading…
Reference in New Issue