nixos-configs/devices/nos/modules/subtitles/syncing/subsync/pocketsphinx.nix

41 lines
679 B
Nix
Raw Normal View History

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