2021-03-09 03:18:52 +00:00
|
|
|
{ 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 = [
|
2022-01-26 04:04:25 +00:00
|
|
|
"--prefix GST_PLUGIN_PATH : ${lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" gst}"
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
2021-09-28 08:13:01 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://apps.kde.org/kamoso/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple and friendly program to use your camera";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "kamoso";
|
2021-09-28 08:13:01 +00:00
|
|
|
license = with lib.licenses; [ lgpl21Only gpl3Only ];
|
|
|
|
};
|
2021-03-09 03:18:52 +00:00
|
|
|
}
|