nixos-configs/devices/nos/modules/subtitles/subsync/pocketsphinx.nix
matt1432 7c9af8ebdd
All checks were successful
Discord / discord commits (push) Has been skipped
feat(subtitles): package sc0ty/subsync
2024-03-25 19:54:40 -04:00

26 lines
495 B
Nix

{
cmake,
fetchFromGitHub,
pkg-config,
sphinxbase,
stdenv,
...
}:
stdenv.mkDerivation rec {
name = "pocketsphinx";
version = "unstable";
src = fetchFromGitHub {
owner = "cmusphinx";
repo = "pocketsphinx";
rev = "7be89aae3e76568e02e4f3d41cf1adcb7654430c";
hash = "sha256-imrwUIpORpfInitVjU11SKPPpjvObKyfI8IB4f41hfY=";
};
buildInputs = [pkg-config];
nativeBuildInputs = [cmake sphinxbase];
postFixup = ''
cp -ar ${src}/src/util $out/include
'';
}