blob: 8fd1b5f96f8345b19e2fdf98d050641b728dbcab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch2
, obs-studio
, cmake
, zlib
, curl
, taglib
, dbus
, pkg-config
, qtbase
, wrapQtAppsHook
}:
stdenv.mkDerivation (finalAttrs: {
pname = "obs-tuna";
version = "1.9.7";
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
buildInputs = [ obs-studio qtbase zlib curl taglib dbus ];
src = fetchFromGitHub {
owner = "univrsal";
repo = "tuna";
rev = "v${finalAttrs.version}";
hash = "sha256-NpfQ3zi+1kQNt2Lj4+1kX2bW9A/E2/MhUV1BA1UX4y0=";
fetchSubmodules = true;
};
patches = [
# fix build with qt 6.6.0
# treewide: replace deprecated qAsConst with std::as_const()
# https://github.com/univrsal/tuna/pull/176
(fetchpatch2 {
url = "https://github.com/univrsal/tuna/commit/0d570e771f8d8e6ae7c85bd2b86bbf59c264789e.patch";
hash = "sha256-A5idhMiM9funqhTm5XMIBqwy+FO1SaNPtgZjo+Vws6k=";
})
];
postInstall = ''
mkdir $out/lib $out/share
mv $out/obs-plugins/64bit $out/lib/obs-plugins
rm -rf $out/obs-plugins
mv $out/data $out/share/obs
'';
dontWrapQtApps = true;
meta = {
description = "Song information plugin for obs-studio";
homepage = "https://github.com/univrsal/tuna";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ shortcord ];
platforms = lib.platforms.linux;
};
})
|