nixos-configs/devices/nos/modules/subtitles/subsync/pocketsphinx.nix
matt1432 a7b7966d52
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: improve custom packages' versioning
2024-03-25 22:42:23 -04:00

29 lines
481 B
Nix

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