472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
qt6Packages,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "qt6mpris";
|
|
version = "1.0.0.1-1deepin1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deepin-community";
|
|
repo = "qt6mpris";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-PCdA9q/txaL2Fbr2/4+Z7L4zxWeULl3bq8MVH3i1g3g=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/src.pro \
|
|
--replace-fail '$$[QT_INSTALL_LIBS]' "$out/lib" \
|
|
--replace-fail '$$[QT_INSTALL_HEADERS]' "$out/include" \
|
|
--replace-fail '$$[QMAKE_MKSPECS]' "$out/mkspecs"
|
|
substituteInPlace declarative/declarative.pro \
|
|
--replace-fail '$$[QT_INSTALL_QML]' "$out/${qt6Packages.qtbase.qtQmlPrefix}"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
qt6Packages.qmake
|
|
];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
buildInputs = [
|
|
qt6Packages.qtbase
|
|
qt6Packages.qtdeclarative
|
|
];
|
|
|
|
meta = {
|
|
description = "Qt and QML MPRIS interface and adaptor";
|
|
homepage = "https://github.com/deepin-community/qt6mpris";
|
|
license = lib.licenses.lgpl21Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = lib.teams.deepin.members;
|
|
};
|
|
})
|