anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / kde / kamoso.nix
blobbb83ccb8f20b10446d7b1541f91c7fd0aa602d3b
1 { mkDerivation
2 , lib
3 , extra-cmake-modules
4 , kdoctools
5 , wrapQtAppsHook
6 , qtdeclarative
7 , qtgraphicaleffects
8 , qtquickcontrols2
9 , kirigami2
10 , kpurpose
11 , gst_all_1
12 , pcre
15 let
16   gst = with gst_all_1; [ gstreamer gst-libav gst-plugins-base gst-plugins-good gst-plugins-bad ];
19 mkDerivation {
20   pname = "kamoso";
21   nativeBuildInputs = [ extra-cmake-modules kdoctools wrapQtAppsHook ];
22   buildInputs = [ pcre ] ++ gst;
23   propagatedBuildInputs = [
24     qtdeclarative
25     qtgraphicaleffects
26     qtquickcontrols2
27     kirigami2
28     kpurpose
29   ];
31   cmakeFlags = [
32     "-DOpenGL_GL_PREFERENCE=GLVND"
33     "-DGSTREAMER_VIDEO_INCLUDE_DIR=${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"
34   ];
36   qtWrapperArgs = [
37     "--prefix GST_PLUGIN_PATH : ${lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" gst}"
38   ];
40   meta = {
41     homepage = "https://apps.kde.org/kamoso/";
42     description = "Simple and friendly program to use your camera";
43     mainProgram = "kamoso";
44     license = with lib.licenses; [ lgpl21Only gpl3Only ];
45   };