summary refs log tree commit diff
path: root/Documentation
diff options
context:
space:
mode:
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
+      ];
+    });
+  });
 }
 ----