3
0
Fork 0
forked from mirrors/nixpkgs

obs-hyperion: 1.0.1 -> 1.0.2

https://github.com/hyperion-project/hyperion-obs-plugin/releases/tag/1.0.2
This commit is contained in:
Sandro Jäckel 2023-02-22 21:05:58 +01:00
parent dd73b3e57b
commit e52a73d184
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -3,35 +3,28 @@
stdenv.mkDerivation rec {
pname = "obs-hyperion";
version = "1.0.1";
version = "1.0.2";
src = fetchFromGitHub {
owner = "hyperion-project";
repo = "hyperion-obs-plugin";
rev = version;
sha256 = "sha256-pfWfJWuIoa+74u5J76/GE+OuHkksbwOAPfsR9OGX3L4=";
sha256 = "sha256-UAfjafoZhhhHRSo+eUBLhHaCmn2GYFcYyRb9wHIp/9I=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ obs-studio libGL qtbase ];
nativeBuildInputs = [ cmake flatbuffers pkg-config ];
buildInputs = [ obs-studio flatbuffers libGL qtbase ];
dontWrapQtApps = true;
cmakeFlags = [
"-DOBS_SOURCE=${obs-studio.src}"
"-DGLOBAL_INSTALLATION=ON"
"-DUSE_SYSTEM_FLATBUFFERS_LIBS=ON"
];
preConfigure = ''
# https://github.com/hyperion-project/hyperion-obs-plugin/issues/7
rm -rf external/flatbuffers
cp -r ${flatbuffers.src} external/flatbuffers
chmod -R a+w external
'';
postInstall = ''
# Remove flatbuffers install
rm -rf $out/bin $out/lib/{libflatbuffers.a,cmake,pkgconfig} $out/include
'';
meta = with lib; {