neovim-unwrapped: use outputChecks

`disallowedRequisites` and friends will be ignored if `__structuredAttrs`
is used. In Nix versions <2.24 and Lix <2.91 this happens silently, in
newer versions a warning is printed.

The solution is to use outputChecks.
This commit is contained in:
Maximilian Bosch 2024-08-15 19:34:28 +02:00 committed by Matthieu Coudron
parent e325795397
commit 6f4426f80f

View File

@ -147,7 +147,12 @@ in {
find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
'';
# check that the above patching actually works
disallowedRequisites = [ stdenv.cc ] ++ lib.optional (lua != codegenLua) codegenLua;
outputChecks = let
disallowedRequisites = [ stdenv.cc ] ++ lib.optional (lua != codegenLua) codegenLua;
in {
out = { inherit disallowedRequisites; };
debug = { inherit disallowedRequisites; };
};
cmakeFlagsArray = [
# Don't use downloaded dependencies. At the end of the configurePhase one