mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 18:44:13 +00:00

Per the adjusted FFmpeg pinning advice, packages that work on the default version should use the unversioned variants to ease the migration to future versions and reduce the number of packages that end up referencing old versions. I have left HandBrake pinned as it builds a custom patched FFmpeg.
45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{ lib, fetchFromGitHub, fetchpatch2, pkg-config, libxcb, mkDerivation, cmake
|
|
, qtbase, qtdeclarative, qtquickcontrols, qtquickcontrols2
|
|
, ffmpeg, gst_all_1, libpulseaudio, alsa-lib, jack2
|
|
, v4l-utils }:
|
|
mkDerivation rec {
|
|
pname = "webcamoid";
|
|
version = "9.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "sha256-E2hHFrksJtdDLWiX7wL1z9LBbBKT04a853V8u+WiwbA=";
|
|
rev = version;
|
|
repo = "webcamoid";
|
|
owner = "webcamoid";
|
|
};
|
|
|
|
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=";
|
|
})
|
|
];
|
|
|
|
buildInputs = [
|
|
libxcb
|
|
qtbase qtdeclarative qtquickcontrols qtquickcontrols2
|
|
ffmpeg
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
|
alsa-lib libpulseaudio jack2
|
|
v4l-utils
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
mainProgram = "webcamoid";
|
|
};
|
|
}
|