tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
kaldi: fix build on darwin
Mario Rodas
3 years ago
4aaf5378
c15430ab
+12
-3
2 changed files
expand all
collapse all
unified
split
pkgs
tools
audio
kaldi
default.nix
top-level
all-packages.nix
+9
-2
pkgs/tools/audio/kaldi/default.nix
···
1
1
-
{ lib, stdenv
1
1
+
{ lib
2
2
+
, stdenv
2
3
, openblas
3
4
, blas
4
5
, lapack
···
9
10
, fetchFromGitHub
10
11
, git
11
12
, python3
13
13
+
, Accelerate
12
14
}:
13
15
14
16
assert blas.implementation == "openblas" && lapack.implementation == "openblas";
···
35
37
cmakeFlags = [
36
38
"-DKALDI_BUILD_TEST=off"
37
39
"-DBUILD_SHARED_LIBS=on"
40
40
+
] ++ lib.optionals stdenv.isDarwin [
41
41
+
"-DBLAS_LIBRARIES=-lblas"
42
42
+
"-DLAPACK_LIBRARIES=-llapack"
38
43
];
39
44
40
45
enableParallelBuilding = true;
···
70
75
openblas
71
76
openfst
72
77
icu
78
78
+
] ++ lib.optionals stdenv.isDarwin [
79
79
+
Accelerate
73
80
];
74
81
75
82
nativeBuildInputs = [
···
88
95
homepage = "https://kaldi-asr.org";
89
96
license = licenses.mit;
90
97
maintainers = with maintainers; [ mic92 ];
91
91
-
platforms = platforms.linux;
98
98
+
platforms = platforms.unix;
92
99
};
93
100
}
+3
-1
pkgs/top-level/all-packages.nix
···
4308
4308
4309
4309
karma = callPackage ../servers/monitoring/karma { };
4310
4310
4311
4311
-
kaldi = callPackage ../tools/audio/kaldi { };
4311
4311
+
kaldi = callPackage ../tools/audio/kaldi {
4312
4312
+
inherit (darwin.apple_sdk.frameworks) Accelerate;
4313
4313
+
};
4312
4314
4313
4315
kalker = callPackage ../tools/misc/kalker { };
4314
4316