summary refs log tree commit diff
path: root/release.nix
Commit message (Collapse)AuthorAge
* release: rename from "img"Alyssa Ross2022-11-13
| | | | | | | | I think this is more descriptive, and "img" is a name better used for VM images. Signed-off-by: Alyssa Ross <hi@alyssa.is> Message-Id: <20221009114036.463071-6-hi@alyssa.is>
* release.nix: run shellcheck on build scriptsAlyssa Ross2022-11-11
| | | | | | | | | | | | | | | | This will make the binary cache build (which I expect to become more CI-like over time) fail if shellcheck doesn't pass on any shell scripts found in the tree. This will help ensure we are sticking to POSIX shell features and following shell scripting best practices. At present, only scripts with names ending in ".sh" are processed, as we don't have any others, and discovering extensionless scripts would be quite a bit more complex. We can worry about that when the time comes. Signed-off-by: Alyssa Ross <alyssa.ross@unikie.com> Message-Id: <20221110112219.459660-2-alyssa.ross@unikie.com> Reviewed-by: Henri Rosten <henri.rosten@unikie.com>
* Introduce a build configuration fileAlyssa Ross2022-09-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* release.nix: build DocumentationAlyssa Ross2022-08-12
| | | | | | | | This will allow the documentation dependencies to be included in the binary cache, which will save potential documentation contributors from having to wait for sassc and an X server to compile. Signed-off-by: Alyssa Ross <hi@alyssa.is>
* release.nix: add to populate binary cacheAlyssa Ross2022-08-12
Previously, the binary cache just built img/combined, which was not very obvious or extensible. I'd like to have it build development shells, as well as possibly replacement bootstrap tools for aarch64-unknown-linux-musl until we can get them updated upstream. Signed-off-by: Alyssa Ross <hi@alyssa.is>