summary refs log tree commit diff
path: root/pkgs/applications/science/math/cntk
diff options
context:
space:
mode:
authorAustin Butler <austinabutler@gmail.com>2021-05-16 16:52:25 -0700
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-16 20:03:06 -0700
commit66201e2c1de3b385f79286c956a15f5b6d227126 (patch)
treea5bf9ddc582731f5e84e697ba5e0cf51a28b4704 /pkgs/applications/science/math/cntk
parent65f7d4a1622189774aceea342acff6d3ab6faa57 (diff)
downloadnixpkgs-66201e2c1de3b385f79286c956a15f5b6d227126.tar
nixpkgs-66201e2c1de3b385f79286c956a15f5b6d227126.tar.gz
nixpkgs-66201e2c1de3b385f79286c956a15f5b6d227126.tar.bz2
nixpkgs-66201e2c1de3b385f79286c956a15f5b6d227126.tar.lz
nixpkgs-66201e2c1de3b385f79286c956a15f5b6d227126.tar.xz
nixpkgs-66201e2c1de3b385f79286c956a15f5b6d227126.tar.zst
nixpkgs-66201e2c1de3b385f79286c956a15f5b6d227126.zip
cntk: fix build
Diffstat (limited to 'pkgs/applications/science/math/cntk')
-rw-r--r--pkgs/applications/science/math/cntk/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/science/math/cntk/default.nix b/pkgs/applications/science/math/cntk/default.nix
index e15e2a43d77..c007490c94d 100644
--- a/pkgs/applications/science/math/cntk/default.nix
+++ b/pkgs/applications/science/math/cntk/default.nix
@@ -33,6 +33,9 @@ in stdenv.mkDerivation rec {
   # Force OpenMPI to use g++ in PATH.
   OMPI_CXX = "g++";
 
+  # Uses some deprecated tensorflow functions
+  NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
+
   buildInputs = [ openblas opencv3 libzip boost protobuf mpi ]
              ++ lib.optional cudaSupport cudatoolkit
              ++ lib.optional cudnnSupport cudnn;
@@ -40,7 +43,7 @@ in stdenv.mkDerivation rec {
   configureFlags = [
     "--with-opencv=${opencv3}"
     "--with-libzip=${libzip.dev}"
-    "--with-openblas=${openblas}"
+    "--with-openblas=${openblas.dev}"
     "--with-boost=${boost.dev}"
     "--with-protobuf=${protobuf}"
     "--with-mpi=${mpi}"