2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, ninja
|
|
|
|
, obs-studio
|
|
|
|
, pipewire
|
|
|
|
, pkg-config
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "obs-pipewire-audio-capture";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "1.1.0";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dimtpap";
|
|
|
|
repo = pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = version;
|
2023-03-24 00:07:29 +00:00
|
|
|
sha256 = "sha256-gcOH8gJuP03MxhJbgl941yTtm2XIHmqHWVwkRCVATkQ=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ninja pkg-config ];
|
|
|
|
buildInputs = [ obs-studio pipewire ];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DLIBOBS_INCLUDE_DIR=${obs-studio.src}/libobs"
|
|
|
|
"-Wno-dev"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cp ${obs-studio.src}/cmake/external/ObsPluginHelpers.cmake cmake/FindLibObs.cmake
|
|
|
|
'';
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = " Audio device and application capture for OBS Studio using PipeWire ";
|
|
|
|
homepage = "https://github.com/dimtpap/obs-pipewire-audio-capture";
|
|
|
|
maintainers = with maintainers; [ Elinvention ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
};
|
|
|
|
}
|