2024-07-21 12:58:10 +00:00
|
|
|
{ lib, fetchFromGitHub, fetchpatch2, pkg-config, libxcb, mkDerivation, cmake
|
2020-05-22 13:06:58 +00:00
|
|
|
, qtbase, qtdeclarative, qtquickcontrols, qtquickcontrols2
|
2024-07-21 12:58:10 +00:00
|
|
|
, ffmpeg_7, gst_all_1, libpulseaudio, alsa-lib, jack2
|
2020-05-22 13:06:58 +00:00
|
|
|
, v4l-utils }:
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "webcamoid";
|
2023-06-22 03:18:28 +00:00
|
|
|
version = "9.1.1";
|
2020-05-22 13:06:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-06-22 03:18:28 +00:00
|
|
|
sha256 = "sha256-E2hHFrksJtdDLWiX7wL1z9LBbBKT04a853V8u+WiwbA=";
|
2020-05-22 13:06:58 +00:00
|
|
|
rev = version;
|
|
|
|
repo = "webcamoid";
|
|
|
|
owner = "webcamoid";
|
|
|
|
};
|
|
|
|
|
2024-07-21 12:58:10 +00:00
|
|
|
patches = [
|
|
|
|
# Update mediawriterffmpeg.cpp for ffmpeg-7.0
|
|
|
|
(fetchpatch2 {
|
|
|
|
url = "https://github.com/webcamoid/webcamoid/commit/b4864f13ec8c2ec93ebb5c13d9293cf9c02c93fd.patch?full_index=1";
|
|
|
|
hash = "sha256-QasfVocxAzRMME03JFRfz7QQYXQGq4TSFiBsKL1g/wU=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-05-22 13:06:58 +00:00
|
|
|
buildInputs = [
|
|
|
|
libxcb
|
|
|
|
qtbase qtdeclarative qtquickcontrols qtquickcontrols2
|
2024-07-21 12:58:10 +00:00
|
|
|
ffmpeg_7
|
2020-09-02 00:46:59 +00:00
|
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib libpulseaudio jack2
|
2020-05-22 13:06:58 +00:00
|
|
|
v4l-utils
|
|
|
|
];
|
|
|
|
|
2022-04-23 09:47:11 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-05-22 13:06:58 +00:00
|
|
|
|
2020-11-05 19:50:09 +00:00
|
|
|
meta = with lib; {
|
2020-05-22 13:06:58 +00:00
|
|
|
description = "Webcam Capture Software";
|
|
|
|
longDescription = "Webcamoid is a full featured and multiplatform webcam suite.";
|
|
|
|
homepage = "https://github.com/webcamoid/webcamoid/";
|
|
|
|
license = [ licenses.gpl3Plus ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ robaca ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "webcamoid";
|
2020-05-22 13:06:58 +00:00
|
|
|
};
|
|
|
|
}
|