From 1497c37aa9006e832566c6f87c21e2871aff6c09 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 13 Sep 2023 11:15:05 +0100 Subject: [PATCH] fix: make python3 dep just a default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When trying to build a package that had `python3 = nixpkgs.python311`, I got an error similar to: ``` Definition values: - In `/nix/store/...-source/nix/modules/dream2nix/default': - In `/nix/store/...-source/modules/dream2nix/core/paths': Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions.ยป; } ``` This seems like a sane usage, so I'm expressing here that what dream2nix adds is just a default. --- modules/dream2nix/core/paths/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dream2nix/core/paths/default.nix b/modules/dream2nix/core/paths/default.nix index bf6c2c6f30..8b25f291c4 100644 --- a/modules/dream2nix/core/paths/default.nix +++ b/modules/dream2nix/core/paths/default.nix @@ -8,7 +8,7 @@ ../deps ]; deps = {nixpkgs, ...}: { - python3 = nixpkgs.python3; + python3 = lib.mkDefault nixpkgs.python3; substituteAll = nixpkgs.substituteAll; }; paths = {