diff options
| author | Robert Hensing <robert@roberthensing.nl> | 2024-01-15 00:28:36 +0100 |
|---|---|---|
| committer | Robert Hensing <robert@roberthensing.nl> | 2024-01-15 00:28:36 +0100 |
| commit | 8be52599b7074027d7614eab8f4eb8d29b8f72ab (patch) | |
| tree | 700aefcedfaa2794fcef78dfceca1d2a86a6164b /pkgs/development/python-modules/python-openstackclient/git@git.tavy.me:nixos | |
| parent | 8e934650ce9ab7b0276fb1bbf4c72d85f2ab4d92 (diff) | |
nixos-rebuild: Prefer the module lib when available
pkgs.lib and lib need not match, so prefer the one that the modules get.
For example:
```nix
nix-repl> :lf nixpkgs
nix-repl> (lib.nixosSystem { modules = [ ({ lib, ... }: assert lib?nixosSystem; { nixpkgs.hostPlatform = "x86_64-linux"; }) ]; }).pkgs.lib?nixosSystem
false
```
The code is backwards compatible, for the case where you evaluate a
config whose nixpkgs doesn't have the preceding commit yet.
Diffstat (limited to 'pkgs/development/python-modules/python-openstackclient/git@git.tavy.me:nixos')
0 files changed, 0 insertions, 0 deletions
