Isolated builds of dependencies

This commit is contained in:
Stéphan Kochen
2021-04-30 11:39:05 +02:00
parent 0f378786d6
commit 153254f62a
14 changed files with 578 additions and 133 deletions
+6 -4
View File
@@ -82,15 +82,17 @@ Some examples of what's possible:
let
# Example of providing a different source tree.
src = pkgs.lib.cleanSource ./.;
project = pkgs.callPackage ./yarn-project.nix {
# Example of selecting a specific version of Node.js.
nodejs = pkgs.nodejs-14_x;
} src;
} {
# Example of providing a different source tree.
src = pkgs.lib.cleanSource ./.;
}
in project.overrideAttrs (oldAttrs: {