about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/kde/kamoso.nix
blob: 878c127a977caad6cb5ccf150b2fcf433a6f8398 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ mkDerivation
, lib
, extra-cmake-modules
, kdoctools
, wrapQtAppsHook
, qtdeclarative
, qtgraphicaleffects
, qtquickcontrols2
, kirigami2
, kpurpose
, gst_all_1
, pcre
}:

let
  gst = with gst_all_1; [ gstreamer gst-libav gst-plugins-base gst-plugins-good gst-plugins-bad ];

in
mkDerivation {
  pname = "kamoso";
  nativeBuildInputs = [ extra-cmake-modules kdoctools wrapQtAppsHook ];
  buildInputs = [ pcre ] ++ gst;
  propagatedBuildInputs = [
    qtdeclarative
    qtgraphicaleffects
    qtquickcontrols2
    kirigami2
    kpurpose
  ];

  cmakeFlags = [
    "-DOpenGL_GL_PREFERENCE=GLVND"
    "-DGSTREAMER_VIDEO_INCLUDE_DIR=${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"
  ];

  qtWrapperArgs = [
    "--prefix GST_PLUGIN_PATH : ${lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" gst}"
  ];

  meta = {
    homepage = "https://apps.kde.org/kamoso/";
    description = "A simple and friendly program to use your camera";
    mainProgram = "kamoso";
    license = with lib.licenses; [ lgpl21Only gpl3Only ];
  };
}