2024-10-14 08:38:22 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
pkg-config,
|
|
|
|
qt6,
|
|
|
|
curl,
|
|
|
|
ffmpeg,
|
|
|
|
cubeb,
|
2024-02-08 09:23:00 +00:00
|
|
|
}:
|
|
|
|
|
2024-08-22 12:07:31 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-02-08 09:23:00 +00:00
|
|
|
pname = "qcm";
|
2024-10-14 08:38:22 +00:00
|
|
|
version = "1.1.2";
|
2024-02-08 09:23:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hypengw";
|
|
|
|
repo = "Qcm";
|
2024-08-22 12:07:31 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-02-08 09:23:00 +00:00
|
|
|
fetchSubmodules = true;
|
2024-10-14 08:38:22 +00:00
|
|
|
hash = "sha256-41GsG+NKCMw+LuRUf31ilRso/SkKYVV3IrMSviOZdWs=";
|
2024-02-08 09:23:00 +00:00
|
|
|
};
|
|
|
|
|
2024-10-14 08:38:22 +00:00
|
|
|
patches = [
|
|
|
|
./remove_cubeb_vendor.patch
|
|
|
|
];
|
2024-02-08 09:23:00 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
qt6.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qt6.qtbase
|
|
|
|
qt6.qtdeclarative
|
2024-10-14 08:38:22 +00:00
|
|
|
qt6.qtsvg
|
2024-02-08 09:23:00 +00:00
|
|
|
qt6.qtwayland
|
|
|
|
curl
|
|
|
|
ffmpeg
|
|
|
|
cubeb
|
|
|
|
] ++ cubeb.passthru.backendLibs;
|
|
|
|
|
2024-08-26 04:21:11 +00:00
|
|
|
# Correct qml import path
|
|
|
|
postInstall = ''
|
2024-10-14 08:38:22 +00:00
|
|
|
mv $out/lib/qt6 $out/lib/qt-6
|
2024-08-26 04:21:11 +00:00
|
|
|
'';
|
|
|
|
|
2024-02-08 09:23:00 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath cubeb.passthru.backendLibs}"
|
|
|
|
];
|
|
|
|
|
2024-08-20 08:23:00 +00:00
|
|
|
meta = {
|
2024-02-08 09:23:00 +00:00
|
|
|
description = "Unofficial Qt client for netease cloud music";
|
|
|
|
homepage = "https://github.com/hypengw/Qcm";
|
2024-08-20 08:23:00 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2024-02-08 09:23:00 +00:00
|
|
|
mainProgram = "Qcm";
|
2024-08-20 08:23:00 +00:00
|
|
|
maintainers = with lib.maintainers; [ aleksana ];
|
|
|
|
platforms = lib.platforms.linux;
|
2024-02-08 09:23:00 +00:00
|
|
|
};
|
2024-08-22 12:07:31 +00:00
|
|
|
})
|