summary refs log tree commit diff
path: root/Documentation
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-04-08 18:27:41 +0000
committerAlyssa Ross <hi@alyssa.is>2023-04-08 18:27:41 +0000
commitf6ea0fff7bab3e3a0428f0675691ddea83a855f7 (patch)
tree659f3076665364bc195815b7ba97553df7d8b0c6 /Documentation
parent54031b9820a0a7e5ffb0813683a2dca0a6f19dd0 (diff)
downloadspectrum-f6ea0fff7bab3e3a0428f0675691ddea83a855f7.tar
spectrum-f6ea0fff7bab3e3a0428f0675691ddea83a855f7.tar.gz
spectrum-f6ea0fff7bab3e3a0428f0675691ddea83a855f7.tar.bz2
spectrum-f6ea0fff7bab3e3a0428f0675691ddea83a855f7.tar.lz
spectrum-f6ea0fff7bab3e3a0428f0675691ddea83a855f7.tar.xz
spectrum-f6ea0fff7bab3e3a0428f0675691ddea83a855f7.tar.zst
spectrum-f6ea0fff7bab3e3a0428f0675691ddea83a855f7.zip
lib/eval-config.nix: expose defaults to config
It's quite likely that somebody doing a custom build of Spectrum might
want to use a custom overlay without changing the underlying version
of Nixpkgs.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/development/build-configuration.adoc20
1 files changed, 9 insertions, 11 deletions
diff --git a/Documentation/development/build-configuration.adoc b/Documentation/development/build-configuration.adoc
index c9a8c99..4f7d8e9 100644
--- a/Documentation/development/build-configuration.adoc
+++ b/Documentation/development/build-configuration.adoc
@@ -23,17 +23,15 @@ custom Nixpkgs to evaluate Spectrum.
 [example]
 [source,nix]
 ----
+{ default, ... }:
+
 {
-  pkgs = import <nixpkgs> {
-    overlays = [
-      (final: super: {
-        weston = super.weston.overrideAttrs ({ patches ? [], ... }: {
-          patches = patches ++ [
-            path/to/weston.patch
-          ];
-        });
-      })
-    ];
-  };
+  pkgs = default.pkgs.extend (final: super: {
+    weston = super.weston.overrideAttrs ({ patches ? [], ... }: {
+      patches = patches ++ [
+        path/to/weston.patch
+      ];
+    });
+  });
 }
 ----