diff options
author | Jan Malakhovski <oxij@oxij.org> | 2023-07-25 13:30:01 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2023-08-03 16:32:06 +0000 |
commit | 775f21b9fdc1f2bb46518a575339fac8ff867959 (patch) | |
tree | 1091a50c55c86215662f2b4913762542a0db369a | |
parent | ccbb065c88080966e14872ea9e0ac577f753d902 (diff) |
doc: add a release note about proper `sourceRoot` usage
-rw-r--r-- | nixos/doc/manual/release-notes/rl-2311.section.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index 85a6d4599fbc0..4e8bd3642813b 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -162,6 +162,8 @@ The module update takes care of the new config syntax and the data itself (user ## Nixpkgs internals {#sec-release-23.11-nixpkgs-internals} +- The use of `sourceRoot = "source";`, `sourceRoot = "source/subdir";`, and similar lines in package derivations using the default `unpackPhase` is deprecated as it requires `unpackPhase` to always produce a directory named "source". Use `sourceRoot = src.name`, `sourceRoot = "${src.name}/subdir";`, or `setSourceRoot = "sourceRoot=$(echo */subdir)";` or similar instead. + - The `qemu-vm.nix` module by default now identifies block devices via persistent names available in `/dev/disk/by-*`. Because the rootDevice is identfied by its filesystem label, it needs to be formatted before the VM is |