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

30 lines
481 B
Nix
Raw Normal View History

2024-03-25 19:54:40 -04:00
{
cmake,
pkg-config,
pocketsphinx-src,
2024-03-25 19:54:40 -04:00
sphinxbase,
stdenv,
...
}: let
pyproject =
(
fromTOML (
builtins.readFile "${pocketsphinx-src}/pyproject.toml"
)
)
.project;
in
stdenv.mkDerivation rec {
name = "pocketsphinx";
inherit (pyproject) version;
2024-03-25 19:54:40 -04:00
src = pocketsphinx-src;
2024-03-25 19:54:40 -04:00
buildInputs = [pkg-config];
nativeBuildInputs = [cmake sphinxbase];
2024-03-25 19:54:40 -04:00
postFixup = ''
cp -ar ${src}/src/util $out/include
'';
}