nixpkgs/pkgs/by-name/qc/qcm/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.1 KiB
Nix
Raw Normal View History

2024-02-08 10:23:00 +01:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, qt6
, curl
, ffmpeg
, cubeb
}:
2024-08-22 14:07:31 +02:00
stdenv.mkDerivation (finalAttrs: {
2024-02-08 10:23:00 +01:00
pname = "qcm";
2024-08-26 06:21:11 +02:00
version = "1.0.5";
2024-02-08 10:23:00 +01:00
src = fetchFromGitHub {
owner = "hypengw";
repo = "Qcm";
2024-08-22 14:07:31 +02:00
rev = "v${finalAttrs.version}";
2024-02-08 10:23:00 +01:00
fetchSubmodules = true;
2024-08-26 06:21:11 +02:00
hash = "sha256-/FOT2xK01JbJbTd5AT5Dk/5EF9qUyLvPTnw8PMtHYoQ=";
2024-02-08 10:23:00 +01: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;
2024-08-26 06:21:11 +02:00
# Correct qml import path
postInstall = ''
mkdir $out/lib/qt-6
mv $out/lib/qml $out/lib/qt-6/qml
'';
2024-02-08 10:23:00 +01:00
qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath cubeb.passthru.backendLibs}"
];
2024-08-20 10:23:00 +02:00
meta = {
2024-02-08 10:23:00 +01:00
description = "Unofficial Qt client for netease cloud music";
homepage = "https://github.com/hypengw/Qcm";
2024-08-20 10:23:00 +02:00
license = lib.licenses.gpl2Plus;
2024-02-08 10:23:00 +01:00
mainProgram = "Qcm";
2024-08-20 10:23:00 +02:00
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.linux;
2024-02-08 10:23:00 +01:00
};
2024-08-22 14:07:31 +02:00
})