nixos-configs/devices/nos/modules/subtitles/syncing/subsync/pocketsphinx.nix
matt1432 3bc5011e6a
All checks were successful
Discord / discord commits (push) Has been skipped
fix(subsync): make build using 5prealpha sphinx
2024-03-29 23:04:52 -04:00

40 lines
679 B
Nix

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