about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/audio/kaldi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/audio/kaldi/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/audio/kaldi/default.nix18
1 files changed, 13 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/tools/audio/kaldi/default.nix b/nixpkgs/pkgs/tools/audio/kaldi/default.nix
index 662a6f2b5348..79da94f72435 100644
--- a/nixpkgs/pkgs/tools/audio/kaldi/default.nix
+++ b/nixpkgs/pkgs/tools/audio/kaldi/default.nix
@@ -1,4 +1,5 @@
-{ lib, stdenv
+{ lib
+, stdenv
 , openblas
 , blas
 , lapack
@@ -9,6 +10,7 @@
 , fetchFromGitHub
 , git
 , python3
+, Accelerate
 }:
 
 assert blas.implementation == "openblas" && lapack.implementation == "openblas";
@@ -23,18 +25,20 @@ let
 in
 stdenv.mkDerivation {
   pname = "kaldi";
-  version = "2021-12-03";
+  version = "unstable-2022-09-26";
 
   src = fetchFromGitHub {
     owner = "kaldi-asr";
     repo = "kaldi";
-    rev = "2b016ab8cb018e031ab3bf01ec36cc2950c7e509";
-    sha256 = "sha256-R8CrY7cwU5XfeGEgeFuZ0ApsEcEmWN/lrZaCjz85tyk=";
+    rev = "f6f4ccaf213f0fe8b26e633a7dc0c802150626a0";
+    sha256 = "sha256-ybW2J4lWf6YaQGZZvxEVDUMAg84DC17W+yX6ZsuBDac=";
   };
 
   cmakeFlags = [
     "-DKALDI_BUILD_TEST=off"
     "-DBUILD_SHARED_LIBS=on"
+    "-DBLAS_LIBRARIES=-lblas"
+    "-DLAPACK_LIBRARIES=-llapack"
   ];
 
   enableParallelBuilding = true;
@@ -66,10 +70,14 @@ stdenv.mkDerivation {
     export PATH=$(pwd)/bin:$PATH
   '';
 
+  outputs = [ "out" "dev" ];
+
   buildInputs = [
     openblas
     openfst
     icu
+  ] ++ lib.optionals stdenv.isDarwin [
+    Accelerate
   ];
 
   nativeBuildInputs = [
@@ -88,6 +96,6 @@ stdenv.mkDerivation {
     homepage = "https://kaldi-asr.org";
     license = licenses.mit;
     maintainers = with maintainers; [ mic92 ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }