2024-02-08 09:23:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, qt6
|
|
|
|
, curl
|
|
|
|
, ffmpeg
|
|
|
|
, cubeb
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qcm";
|
2024-05-29 05:30:12 +00:00
|
|
|
version = "1.0.3";
|
2024-02-08 09:23:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hypengw";
|
|
|
|
repo = "Qcm";
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2024-05-29 05:30:12 +00:00
|
|
|
hash = "sha256-9xbAw5U4BtpupelsOzfZGosdLx06TKPTG8hhc/no3R0=";
|
2024-02-08 09:23:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = "An 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;
|
|
|
|
};
|
|
|
|
}
|