1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-06 16:57:08 +00:00

doc/manual: use --replace-fail

This commit is contained in:
Emily 2025-01-13 23:21:04 +00:00
parent bd921223ba
commit 47174f3868

View file

@ -53,7 +53,7 @@ in rec {
substitute \ substitute \
${optionsDoc.optionsJSON}/nix-support/hydra-build-products \ ${optionsDoc.optionsJSON}/nix-support/hydra-build-products \
$out/nix-support/hydra-build-products \ $out/nix-support/hydra-build-products \
--replace \ --replace-fail \
'${optionsDoc.optionsJSON}/share/doc/nixos' \ '${optionsDoc.optionsJSON}/share/doc/nixos' \
"$out/share/doc/darwin" "$out/share/doc/darwin"
''; '';
@ -74,8 +74,8 @@ in rec {
cp -r ${pkgs.documentation-highlighter} $dst/highlightjs cp -r ${pkgs.documentation-highlighter} $dst/highlightjs
substitute ${./manual.md} manual.md \ substitute ${./manual.md} manual.md \
--replace '@DARWIN_VERSION@' "${version}" \ --replace-fail '@DARWIN_VERSION@' "${version}" \
--replace \ --replace-fail \
'@DARWIN_OPTIONS_JSON@' \ '@DARWIN_OPTIONS_JSON@' \
${optionsJSON}/share/doc/darwin/options.json ${optionsJSON}/share/doc/darwin/options.json