From 6f4426f80fc454cc7454d6b395562f787b9bda83 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 15 Aug 2024 19:34:28 +0200 Subject: [PATCH] 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. --- pkgs/by-name/ne/neovim-unwrapped/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ne/neovim-unwrapped/package.nix b/pkgs/by-name/ne/neovim-unwrapped/package.nix index b40ffac4a3a6..1b57a31ae15f 100644 --- a/pkgs/by-name/ne/neovim-unwrapped/package.nix +++ b/pkgs/by-name/ne/neovim-unwrapped/package.nix @@ -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