14 stdenv.mkDerivation (finalAttrs: {
15 pname = "pocketsphinx";
18 src = fetchFromGitHub {
20 repo = "pocketsphinx";
21 rev = "refs/tags/v${finalAttrs.version}";
22 hash = "sha256-aCQpRmGHX08rA8UIt6Xf37XM34HysEzvcucLhL355k8=";
32 buildInputs = [ gst_all_1.gstreamer ];
35 (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
36 (lib.cmakeBool "BUILD_GSTREAMER" true)
37 (lib.cmakeFeature "CMAKE_INSTALL_DATADIR" "${placeholder "data"}/share")
49 updateScript = gitUpdater { rev-prefix = "v"; };
50 tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
54 description = "Small speech recognizer";
55 homepage = "https://github.com/cmusphinx/pocketsphinx";
56 changelog = "https://github.com/cmusphinx/pocketsphinx/blob/v${finalAttrs.version}/NEWS";
57 license = with licenses; [
62 pkgConfigModules = [ "pocketsphinx" ];
63 mainProgram = "pocketsphinx";
64 maintainers = with maintainers; [ jopejoe1 ];