mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
Fix compatibility with Nix < 1.6
Nix 1.6 (accidentally) changed the semantics of strings like "${path}/bla", so this happened to work on 1.6 but not before.
This commit is contained in:
parent
418fa3bb33
commit
84d4358635
@ -26,10 +26,10 @@ with pkgs.lib;
|
||||
config = {
|
||||
|
||||
system.nixosVersion =
|
||||
mkDefault (builtins.readFile "${pkgs.path}/.version" + config.system.nixosVersionSuffix);
|
||||
mkDefault (builtins.readFile "${toString pkgs.path}/.version" + config.system.nixosVersionSuffix);
|
||||
|
||||
system.nixosVersionSuffix =
|
||||
let suffixFile = "${pkgs.path}/.version-suffix"; in
|
||||
let suffixFile = "${toString pkgs.path}/.version-suffix"; in
|
||||
mkDefault (if builtins.pathExists suffixFile then builtins.readFile suffixFile else "pre-git");
|
||||
|
||||
# Note: code names must only increase in alphabetical order.
|
||||
|
Loading…
Reference in New Issue
Block a user