2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
ninja,
|
|
|
|
obs-studio,
|
|
|
|
pipewire,
|
|
|
|
pkg-config,
|
2022-07-18 16:21:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "obs-pipewire-audio-capture";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.1.5";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dimtpap";
|
|
|
|
repo = pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = version;
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-qYHU0m+jz/mQmjleITnzxNkTio5ir8dFkHKfmY4l0Es=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
obs-studio
|
|
|
|
pipewire
|
|
|
|
];
|
2022-07-18 16:21:45 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
cmakeFlags = [
|
2024-09-19 14:19:46 +00:00
|
|
|
"-DCMAKE_INSTALL_LIBDIR=/lib"
|
2022-11-21 17:40:18 +00:00
|
|
|
];
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
meta = with lib; {
|
2023-11-16 04:20:00 +00:00
|
|
|
description = "Audio device and application capture for OBS Studio using PipeWire";
|
2022-07-18 16:21:45 +00:00
|
|
|
homepage = "https://github.com/dimtpap/obs-pipewire-audio-capture";
|
|
|
|
maintainers = with maintainers; [ Elinvention ];
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2024-09-19 14:19:46 +00:00
|
|
|
platforms = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
];
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
}
|