mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{ 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 = "Simple and friendly program to use your camera";
|
|
mainProgram = "kamoso";
|
|
license = with lib.licenses; [ lgpl21Only gpl3Only ];
|
|
};
|
|
}
|