deepin.qt6mpris: init at 1.0.0.1-1deepin1

This commit is contained in:
rewine
2024-09-26 21:32:59 +08:00
parent 8e31c4a755
commit 127ee2dce6
2 changed files with 47 additions and 0 deletions
+1
View File
@@ -38,6 +38,7 @@ let
dtk6log = callPackage ./library/dtk6log { };
qt6platform-plugins = callPackage ./library/qt6platform-plugins { };
qt6integration = callPackage ./library/qt6integration { };
qt6mpris = callPackage ./library/qt6mpris { };
#### CORE
deepin-kwin = callPackage ./core/deepin-kwin { };
@@ -0,0 +1,46 @@
{
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;
};
})