From 31baa9d9b177af2e5aa86492b41e5452d126627f Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Mon, 2 Feb 2026 01:13:17 +0100 Subject: [PATCH] octave: move NIX_LDFLAGS into env for structuredAttrs --- pkgs/development/interpreters/octave/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/development/interpreters/octave/default.nix b/pkgs/development/interpreters/octave/default.nix index 71421c6e5eea..a1add4055af5 100644 --- a/pkgs/development/interpreters/octave/default.nix +++ b/pkgs/development/interpreters/octave/default.nix @@ -171,11 +171,15 @@ stdenv.mkDerivation (finalAttrs: { enableParallelBuilding = true; - # Fix linker error on Darwin (see https://trac.macports.org/ticket/61865) - NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-lobjc"; - - # See https://savannah.gnu.org/bugs/?50339 - F77_INTEGER_8_FLAG = lib.optionalString use64BitIdx "-fdefault-integer-8"; + env = + lib.optionalAttrs stdenv.hostPlatform.isDarwin { + # Fix linker error on Darwin (see https://trac.macports.org/ticket/61865) + NIX_LDFLAGS = "-lobjc"; + } + // lib.optionalAttrs use64BitIdx { + # See https://savannah.gnu.org/bugs/?50339 + F77_INTEGER_8_FLAG = "-fdefault-integer-8"; + }; configureFlags = [ "--with-blas=blas"