mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
54 lines
1003 B
Nix
54 lines
1003 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, qt6
|
|
, curl
|
|
, ffmpeg
|
|
, cubeb
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "qcm";
|
|
version = "1.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hypengw";
|
|
repo = "Qcm";
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-dwzstlmGuY8oRxxO2BPXmSCSnE7Fbp+dyYVs17HUopA=";
|
|
};
|
|
|
|
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}"
|
|
];
|
|
|
|
meta = {
|
|
description = "Unofficial Qt client for netease cloud music";
|
|
homepage = "https://github.com/hypengw/Qcm";
|
|
license = lib.licenses.gpl2Plus;
|
|
mainProgram = "Qcm";
|
|
maintainers = with lib.maintainers; [ aleksana ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|