nixpkgs: support buildPlatform, hostPlatform, and overlays (#184)
This commit is contained in:
parent
c9e35e9b7d
commit
489c060d2e
2 changed files with 30 additions and 3 deletions
|
|
@ -20,13 +20,23 @@
|
|||
in
|
||||
{
|
||||
nixpkgs = {
|
||||
# TODO: switch to lib.systems.parsedPlatform
|
||||
hostPlatform = lib.mkOption {
|
||||
buildPlatform = lib.mkOption {
|
||||
type = types.str;
|
||||
example = "x86_64-linux";
|
||||
default = config.nixpkgs.hostPlatform;
|
||||
};
|
||||
|
||||
hostPlatform = lib.mkOption {
|
||||
type = with types; either str attrs;
|
||||
example = "x86_64-linux";
|
||||
default = throw "the option nixpkgs.hostPlatform needs to be set.";
|
||||
};
|
||||
|
||||
overlays = lib.mkOption {
|
||||
type = with types; listOf anything;
|
||||
default = [];
|
||||
};
|
||||
|
||||
config = lib.mkOption {
|
||||
type = types.attrs;
|
||||
description = ''Configuration used to instantiate nixpkgs.'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue