From 50af498ece0a94a98562be0693becd6790b28edf Mon Sep 17 00:00:00 2001 From: Phillip Seeber Date: Wed, 3 Sep 2025 10:37:48 +0200 Subject: [PATCH] python3Packages.gpaw: fix darwin build --- pkgs/development/python-modules/gpaw/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/gpaw/default.nix b/pkgs/development/python-modules/gpaw/default.nix index d421dee6f0e9..61a54536569c 100644 --- a/pkgs/development/python-modules/gpaw/default.nix +++ b/pkgs/development/python-modules/gpaw/default.nix @@ -36,7 +36,7 @@ let # BLAS libraries += ['blas'] - library_dirs += ['${blas}/lib'] + library_dirs += ['${lib.getLib blas}/lib'] # FFTW fftw = True @@ -51,9 +51,8 @@ let libxc = True if libxc: xc = '${libxc}/' - include_dirs += [xc + 'include'] - library_dirs += [xc + 'lib/'] - extra_link_args += ['-Wl,-rpath={xc}/lib'.format(xc=xc)] + include_dirs += ['${lib.getDev libxc}/include'] + library_dirs += ['${lib.getLib libxc}/lib'] if 'xc' not in libraries: libraries.append('xc') @@ -61,9 +60,8 @@ let libvdwxc = True if libvdwxc: vdwxc = '${libvdwxc}/' - extra_link_args += ['-Wl,-rpath=%s/lib' % vdwxc] - library_dirs += ['%s/lib' % vdwxc] - include_dirs += ['%s/include' % vdwxc] + library_dirs += ['${lib.getLib libvdwxc}/lib'] + include_dirs += ['${lib.getDev libvdwxc}/include'] libraries += ['vdwxc'] ''; };