diff options
Diffstat (limited to 'pkgs/development/libraries/hwloc')
-rw-r--r-- | pkgs/development/libraries/hwloc/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/libraries/hwloc/default.nix b/pkgs/development/libraries/hwloc/default.nix index 76bc49fb0085d..e86a3ccac856a 100644 --- a/pkgs/development/libraries/hwloc/default.nix +++ b/pkgs/development/libraries/hwloc/default.nix @@ -19,6 +19,20 @@ stdenv.mkDerivation rec { ++ (stdenv.lib.optionals (!stdenv.isCygwin) [ cairo libX11 ]) ++ (stdenv.lib.optionals stdenv.isLinux [ pciutils numactl ])); + postInstall = + stdenv.lib.optionalString (stdenv.isLinux && numactl != null) + '' if [ -d "${numactl}/lib64" ] + then + numalibdir="${numactl}/lib64" + else + numalibdir="${numactl}/lib" + test -d "$numalibdir" + fi + + sed -i "$out/lib/libhwloc.la" \ + -e "s|-lnuma|-L$numalibdir -lnuna|g" + ''; + doCheck = true; meta = { |