Merge pull request #334973 from SomeoneSerge/fix/structuredAttrs/xxxArray
stdenv: concatTo: fallback for non-__structuredAttrs derivations
This commit is contained in:
commit
4ef32bd71b
@ -400,8 +400,15 @@ concatTo() {
|
||||
-a*)
|
||||
targetref+=( "${nameref[@]}" ) ;;
|
||||
*)
|
||||
# shellcheck disable=SC2206
|
||||
targetref+=( ${nameref-} ) ;;
|
||||
if [[ "$name" = *"Array" ]]; then
|
||||
nixErrorLog "concatTo(): $name is not declared as array, treating as a singleton. This will become an error in future"
|
||||
# Reproduces https://github.com/NixOS/nixpkgs/pull/318614/files#diff-7c7ca80928136cfc73a02d5b28350bd900e331d6d304857053ffc9f7beaad576L359
|
||||
targetref+=( ${nameref+"${nameref[@]}"} )
|
||||
else
|
||||
# shellcheck disable=SC2206
|
||||
targetref+=( ${nameref-} )
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
|
@ -18,6 +18,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# e.g. links to man pages, value constraints etc.
|
||||
version = "1.9.15p5";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.sudo.ws/dist/sudo-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-VY0QuaGZH7O5+n+nsH7EQFt677WzywsIcdvIHjqI5Vg=";
|
||||
|
Loading…
Reference in New Issue
Block a user