2024-03-25 19:54:40 -04:00
|
|
|
{
|
2024-03-29 23:04:52 -04:00
|
|
|
autoreconfHook,
|
|
|
|
fetchFromGitHub,
|
2024-03-25 19:54:40 -04:00
|
|
|
pkg-config,
|
2024-03-29 23:04:52 -04:00
|
|
|
python3,
|
2024-03-25 19:54:40 -04:00
|
|
|
sphinxbase,
|
|
|
|
stdenv,
|
2024-03-29 23:04:52 -04:00
|
|
|
swig2,
|
2024-03-25 19:54:40 -04:00
|
|
|
...
|
2024-03-29 23:04:52 -04:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "pocketsphinx";
|
|
|
|
version = "5prealpha";
|
2024-03-25 19:54:40 -04:00
|
|
|
|
2024-03-29 23:04:52 -04:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cmusphinx";
|
|
|
|
repo = "pocketsphinx";
|
|
|
|
rev = "5da71f0a05350c923676b02a69423d1291825d5b";
|
|
|
|
hash = "sha256-YZwuVYg8Uqt1gOYXeYC8laRj+IObbuO9f/BjcQKRwkY=";
|
|
|
|
};
|
2024-03-25 19:54:40 -04:00
|
|
|
|
2024-03-29 23:04:52 -04:00
|
|
|
patches = [./patches/distutils.patch];
|
2024-03-25 19:54:40 -04:00
|
|
|
|
2024-03-29 23:04:52 -04:00
|
|
|
autoreconfPhase = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
swig2
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
sphinxbase
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
cp $out/include/pocketsphinx/* $out/include
|
|
|
|
'';
|
|
|
|
}
|