Merge pull request #287210 from Aleksanaa/qcm

qcm: init at 1.0.2

authored by kirillrdy and committed by GitHub c32d7be9 5a7b2412

+90
+57
pkgs/by-name/qc/qcm/package.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , pkg-config 6 + , qt6 7 + , curl 8 + , ffmpeg 9 + , cubeb 10 + }: 11 + 12 + stdenv.mkDerivation rec { 13 + pname = "qcm"; 14 + version = "1.0.2"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "hypengw"; 18 + repo = "Qcm"; 19 + rev = "v${version}"; 20 + fetchSubmodules = true; 21 + hash = "sha256-6QivAQqOuWIldx2Rh5nNsj0gia3AOUm6vy9aqyJ1G6k="; 22 + }; 23 + 24 + patches = [ ./remove_cubeb_vendor.patch ]; 25 + 26 + nativeBuildInputs = [ 27 + cmake 28 + pkg-config 29 + qt6.wrapQtAppsHook 30 + ]; 31 + 32 + buildInputs = [ 33 + qt6.qtbase 34 + qt6.qtdeclarative 35 + qt6.qtwayland 36 + curl 37 + ffmpeg 38 + cubeb 39 + ] ++ cubeb.passthru.backendLibs; 40 + 41 + qtWrapperArgs = [ 42 + "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath cubeb.passthru.backendLibs}" 43 + ]; 44 + 45 + postInstall = '' 46 + rm -r $out/{include,lib/cmake} 47 + ''; 48 + 49 + meta = with lib; { 50 + description = "An unofficial Qt client for netease cloud music"; 51 + homepage = "https://github.com/hypengw/Qcm"; 52 + license = licenses.gpl2Plus; 53 + mainProgram = "Qcm"; 54 + maintainers = with maintainers; [ aleksana ]; 55 + platforms = platforms.linux; 56 + }; 57 + }
+33
pkgs/by-name/qc/qcm/remove_cubeb_vendor.patch
··· 1 + diff --git a/player/CMakeLists.txt b/player/CMakeLists.txt 2 + index c160e10..62c2611 100644 3 + --- a/player/CMakeLists.txt 4 + +++ b/player/CMakeLists.txt 5 + @@ -25,4 +25,4 @@ target_include_directories( 6 + target_link_libraries( 7 + player 8 + PUBLIC core error asio_helper PkgConfig::LIBAV 9 + - PRIVATE ctre cubeb::cubeb) 10 + + PRIVATE ctre cubeb) 11 + diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt 12 + index 45345d3..f797b48 100644 13 + --- a/third_party/CMakeLists.txt 14 + +++ b/third_party/CMakeLists.txt 15 + @@ -41,10 +41,7 @@ option(USE_SANITIZERS "" OFF) 16 + set(USE_WINMM 17 + OFF 18 + CACHE BOOL "") 19 + -add_subdirectory(cubeb EXCLUDE_FROM_ALL) 20 + -set_property(TARGET cubeb PROPERTY MSVC_RUNTIME_LIBRARY 21 + - "MultiThreaded$<$<CONFIG:Debug>:Debug>") 22 + -add_library(cubeb::cubeb ALIAS cubeb) 23 + +find_package(cubeb REQUIRED) 24 + 25 + option(KDSingleApplication_QT6 "" ON) 26 + option(KDSingleApplication_STATIC "" ON) 27 + @@ -55,4 +52,4 @@ add_subdirectory(KDSingleApplication) 28 + 29 + 30 + add_library(pegtl INTERFACE) 31 + -target_include_directories(pegtl INTERFACE PEGTL/include) 32 + \ No newline at end of file 33 + +target_include_directories(pegtl INTERFACE PEGTL/include)