ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / po / pocketsphinx / package.nix
blob0e37da28a93900b7bedf5c0f98e77deeb31f8e18
2   lib,
3   stdenv,
4   cmake,
5   doxygen,
6   fetchFromGitHub,
7   gitUpdater,
8   graphviz,
9   gst_all_1,
10   pkg-config,
11   testers,
14 stdenv.mkDerivation (finalAttrs: {
15   pname = "pocketsphinx";
16   version = "5.0.3";
18   src = fetchFromGitHub {
19     owner = "cmusphinx";
20     repo = "pocketsphinx";
21     rev = "refs/tags/v${finalAttrs.version}";
22     hash = "sha256-aCQpRmGHX08rA8UIt6Xf37XM34HysEzvcucLhL355k8=";
23   };
25   nativeBuildInputs = [
26     cmake
27     doxygen
28     graphviz
29     pkg-config
30   ];
32   buildInputs = [ gst_all_1.gstreamer ];
34   cmakeFlags = [
35     (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
36     (lib.cmakeBool "BUILD_GSTREAMER" true)
37     (lib.cmakeFeature "CMAKE_INSTALL_DATADIR" "${placeholder "data"}/share")
38   ];
40   outputs = [
41     "out"
42     "data"
43     "dev"
44     "lib"
45     "man"
46   ];
48   passthru = {
49     updateScript = gitUpdater { rev-prefix = "v"; };
50     tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
51   };
53   meta = with lib; {
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; [
58       bsd2
59       bsd3
60       mit
61     ];
62     pkgConfigModules = [ "pocketsphinx" ];
63     mainProgram = "pocketsphinx";
64     maintainers = with maintainers; [ jopejoe1 ];
65   };