blob: c1aaa0e3311ea5ce47e60beab9b212a170010274 (
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
, cmake
, pkg-config
, qt6
, curl
, ffmpeg
, cubeb
}:
stdenv.mkDerivation rec {
pname = "qcm";
version = "1.0.3";
src = fetchFromGitHub {
owner = "hypengw";
repo = "Qcm";
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-9xbAw5U4BtpupelsOzfZGosdLx06TKPTG8hhc/no3R0=";
};
patches = [ ./remove_cubeb_vendor.patch ];
nativeBuildInputs = [
cmake
pkg-config
qt6.wrapQtAppsHook
];
buildInputs = [
qt6.qtbase
qt6.qtdeclarative
qt6.qtwayland
curl
ffmpeg
cubeb
] ++ cubeb.passthru.backendLibs;
qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath cubeb.passthru.backendLibs}"
];
postInstall = ''
rm -r $out/{include,lib/cmake}
'';
meta = with lib; {
description = "Unofficial Qt client for netease cloud music";
homepage = "https://github.com/hypengw/Qcm";
license = licenses.gpl2Plus;
mainProgram = "Qcm";
maintainers = with maintainers; [ aleksana ];
platforms = platforms.linux;
};
}
|