27 lines
934 B
Nix
27 lines
934 B
Nix
# nixpkgs-unstable regression fix (seen on 26.11.20261020.5adc508):
|
|
#
|
|
# khal sets `sphinxBuilders = [ "html" "man" ]`, but sphinx-hook.sh reads
|
|
# it as a plain string:
|
|
#
|
|
# eval "__sphinxBuilders=($sphinxBuilders)"
|
|
#
|
|
# With __structuredAttrs (the default in this unstable snapshot) the list
|
|
# arrives in the builder as a bash ARRAY, and `$sphinxBuilders` expands to
|
|
# only its first element ("html"). The man builder never runs and the
|
|
# build fails with:
|
|
#
|
|
# error: builder for '…-khal-0.14.1.drv' failed to produce output path
|
|
# for output 'man' at "…-khal-0.14.1-man"
|
|
#
|
|
# Passing the builders as a space-separated string restores the hook's
|
|
# expected input format.
|
|
#
|
|
# Drop this overlay once nixpkgs' sphinx-hook.sh handles array-valued
|
|
# sphinxBuilders under structured attrs (then remove the wiring in
|
|
# overlays/default.nix).
|
|
{prev}: {
|
|
khal = prev.khal.overrideAttrs (old: {
|
|
sphinxBuilders = "html man";
|
|
});
|
|
}
|