summary refs log tree commit diff
path: root/pkgs/development/libraries/oneDNN
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-07-20 04:20:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-07-20 04:20:00 -0500
commit8f1c94942eb090a41e3a62defc6b520a2cbf9889 (patch)
tree44b82ee2c355ef057c9673d053d6e8bd704810c4 /pkgs/development/libraries/oneDNN
parent11fbf5357143ce1f7ac365a3f36f3861832d6148 (diff)
oneDNN: enable on darwin
Diffstat (limited to 'pkgs/development/libraries/oneDNN')
-rw-r--r--pkgs/development/libraries/oneDNN/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/libraries/oneDNN/default.nix b/pkgs/development/libraries/oneDNN/default.nix
index 01ce51be18d08..497e5afb5ffdd 100644
--- a/pkgs/development/libraries/oneDNN/default.nix
+++ b/pkgs/development/libraries/oneDNN/default.nix
@@ -22,7 +22,8 @@ stdenv.mkDerivation rec {
 
   # The test driver doesn't add an RPath to the build libdir
   preCheck = ''
-    export LD_LIBRARY_PATH=$PWD/src
+    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/src
+    export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/src
   '';
 
   # The cmake install gets tripped up and installs a nix tree into $out, in
@@ -36,7 +37,7 @@ stdenv.mkDerivation rec {
     homepage = "https://01.org/dnnl";
     changelog = "https://github.com/oneapi-src/oneDNN/releases/tag/v${version}";
     license = licenses.asl20;
-    platforms = [ "aarch64-linux" "x86_64-linux" ];
+    platforms = platforms.all;
     maintainers = with maintainers; [ alexarice bhipple ];
   };
 }