diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-08-31 09:37:24 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-09-10 15:25:37 +0000 |
commit | b508c467d0a54f1aa60c138acdc6677a8ba77abd (patch) | |
tree | a12a3f21cf7dcb88037850e84890b7f6337c6888 /host/rootfs/scripts | |
parent | 44d289986b1ef4d7a0c6655b97a487fb61b45534 (diff) | |
download | spectrum-b508c467d0a54f1aa60c138acdc6677a8ba77abd.tar spectrum-b508c467d0a54f1aa60c138acdc6677a8ba77abd.tar.gz spectrum-b508c467d0a54f1aa60c138acdc6677a8ba77abd.tar.bz2 spectrum-b508c467d0a54f1aa60c138acdc6677a8ba77abd.tar.lz spectrum-b508c467d0a54f1aa60c138acdc6677a8ba77abd.tar.xz spectrum-b508c467d0a54f1aa60c138acdc6677a8ba77abd.tar.zst spectrum-b508c467d0a54f1aa60c138acdc6677a8ba77abd.zip |
Introduce a build configuration file
By default, a file called "config.nix" in the root of the Spectrum repository will be read if it exists. That file should contain an attribute set. Currently, only a "pkgs" key is supported, which allows specifying a custom package set that will be used throughout the Spectrum Nix files. This will allow us to provide configuartion options for people who want to build Spectrum in ways that are probably not suitable for upstreaming. For example, using the "pkgs" config option I'm introducing here, it would be possible to use an overlay to patch individual components, like so: { pkgs = import <nixpkgs> { overlays = [ (final: super: { weston = super.weston.overrideAttrs ({ patches ? [], ... }: { patches = patches ++ [ path/to/weston.patch ]; }); }) ]; }; } Signed-off-by: Alyssa Ross <hi@alyssa.is> Message-Id: <20220831093727.282797-1-hi@alyssa.is> Reviewed-by: Ville Ilvonen <ville.ilvonen@unikie.com> Tested-by: José Pekkarinen <jose.pekkarinen@unikie.com>
Diffstat (limited to 'host/rootfs/scripts')
0 files changed, 0 insertions, 0 deletions