Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / kde / kamoso.nix
blobc80ed0c511e482f10a139d8bcd68d8ed57b5b235
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 = "A simple and friendly program to use your camera";
43     license = with lib.licenses; [ lgpl21Only gpl3Only ];
44   };