From 0abbed5dd5d9ff19165579639b6c31bd4a6b6c6d Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Fri, 16 Aug 2024 13:56:37 -0700 Subject: [PATCH] haskellLib.checkUnusedPackages: remove with lib statement --- pkgs/development/interpreters/gnu-apl/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/gnu-apl/default.nix b/pkgs/development/interpreters/gnu-apl/default.nix index d854643bb2fe..85e86de1d6b2 100644 --- a/pkgs/development/interpreters/gnu-apl/default.nix +++ b/pkgs/development/interpreters/gnu-apl/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { buildInputs = [ readline gettext ncurses ]; - env.NIX_CFLAGS_COMPILE = with lib; toString ((optionals stdenv.cc.isGNU [ + env.NIX_CFLAGS_COMPILE = toString ((lib.optionals stdenv.cc.isGNU [ # Needed with GCC 8 "-Wno-error=int-in-bool-context" "-Wno-error=class-memaccess" @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { "-Wno-error=nonnull" "-Wno-error=stringop-overflow" "-Wno-error=use-after-free" - ]) ++ optional stdenv.cc.isClang "-Wno-error=null-dereference"); + ]) ++ lib.optional stdenv.cc.isClang "-Wno-error=null-dereference"); patchPhase = lib.optionalString stdenv.isDarwin '' substituteInPlace src/LApack.cc --replace "malloc.h" "malloc/malloc.h"