From b9377e0950ac24f5c50cc431e76985d2250c9a3a Mon Sep 17 00:00:00 2001 From: Richard Marko Date: Sat, 26 Sep 2020 18:04:31 +0200 Subject: [PATCH] ghc8102Binary: add numactl to libPath on aarch64 Fixes: utils/ghc-cabal/dist-install/build/tmp/ghc-cabal: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory --- pkgs/development/compilers/ghc/8.10.2-binary.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/ghc/8.10.2-binary.nix b/pkgs/development/compilers/ghc/8.10.2-binary.nix index 87d341a10f1..26017c28fd0 100644 --- a/pkgs/development/compilers/ghc/8.10.2-binary.nix +++ b/pkgs/development/compilers/ghc/8.10.2-binary.nix @@ -1,6 +1,6 @@ { stdenv , fetchurl, perl, gcc -, ncurses6, gmp, glibc, libiconv +, ncurses6, gmp, glibc, libiconv, numactl , llvmPackages , ... }: @@ -13,7 +13,8 @@ let libPath = stdenv.lib.makeLibraryPath ([ ncurses6 gmp - ] ++ stdenv.lib.optional (stdenv.hostPlatform.isDarwin) libiconv); + ] ++ stdenv.lib.optional (stdenv.hostPlatform.isDarwin) libiconv + ++ stdenv.lib.optional (stdenv.hostPlatform.isAarch64) numactl); libEnvVar = stdenv.lib.optionalString stdenv.hostPlatform.isDarwin "DY" + "LD_LIBRARY_PATH";