Skip to content

Commit

Permalink
fix: make python3 dep just a default
Browse files Browse the repository at this point in the history
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': <derivation python3-3.11.4>
       - In `/nix/store/...-source/modules/dream2nix/core/paths': <derivation python3-3.10.12>
       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.
  • Loading branch information
yajo committed Sep 13, 2023
1 parent 77eeb06 commit ee77362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dream2nix/core/paths/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
./interface.nix
];
deps = {nixpkgs, ...}: {
python3 = nixpkgs.python3;
python3 = lib.mkDefault nixpkgs.python3;
substituteAll = nixpkgs.substituteAll;
};
paths = {
Expand Down

0 comments on commit ee77362

Please sign in to comment.