generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pocketsphinx.nix
61 lines (52 loc) · 1.07 KB
/
pocketsphinx.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pkgs
, python
, scikit-build
#, python-extensions
, cython
, sounddevice
}:
buildPythonPackage rec {
pname = "pocketsphinx";
version = pkgs.pocketsphinx.version;
src = pkgs.pocketsphinx.src;
/*
src = fetchPypi {
inherit pname version;
hash = "";
};
*/
# fix: checkPhase would re-run configure + build + install
# and would try to install to wrong prefix: ${python3} instead of $out
setuptoolsCheckPhase = ":";
nativeBuildInputs = [
#pkgs.swig
pkgs.cmake
#python
cython
#scikit-build # skbuild
];
propagatedBuildInputs = ([
sounddevice
]);
# dont run cmake in configurePhase
# cmake is called from the python build system
dontConfigure = true;
buildInputs = ([
/*
pkgs.pulseaudio
pkgs.alsaLib
#pkgs.pocketsphinx
#python-extensions
*/
scikit-build # skbuild
]);
meta = with lib; {
homepage = "https://github.com/bambocher/pocketsphinx-python";
description = "Python interface to CMU Pocketsphinx library";
license = licenses.mit;
};
}