mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
this makes the files in question a bit more independent of source location.
to find where the value is set and how it's wired up:
rg nix=doc/manual
11 lines
250 B
Nix
11 lines
250 B
Nix
with builtins;
|
|
with import <nix/utils.nix>;
|
|
|
|
let
|
|
showExperimentalFeature = name: doc:
|
|
squash ''
|
|
## [`${name}`]{#xp-feature-${name}}
|
|
|
|
${doc}
|
|
'';
|
|
in xps: (concatStringsSep "\n" (attrValues (mapAttrs showExperimentalFeature xps)))
|