Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 46 lines 1.1 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 qt6Packages, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "qt6mpris"; 10 version = "1.0.0.1-1deepin1"; 11 12 src = fetchFromGitHub { 13 owner = "deepin-community"; 14 repo = "qt6mpris"; 15 rev = finalAttrs.version; 16 hash = "sha256-PCdA9q/txaL2Fbr2/4+Z7L4zxWeULl3bq8MVH3i1g3g="; 17 }; 18 19 postPatch = '' 20 substituteInPlace src/src.pro \ 21 --replace-fail '$$[QT_INSTALL_LIBS]' "$out/lib" \ 22 --replace-fail '$$[QT_INSTALL_HEADERS]' "$out/include" \ 23 --replace-fail '$$[QMAKE_MKSPECS]' "$out/mkspecs" 24 substituteInPlace declarative/declarative.pro \ 25 --replace-fail '$$[QT_INSTALL_QML]' "$out/${qt6Packages.qtbase.qtQmlPrefix}" 26 ''; 27 28 nativeBuildInputs = [ 29 qt6Packages.qmake 30 ]; 31 32 dontWrapQtApps = true; 33 34 buildInputs = [ 35 qt6Packages.qtbase 36 qt6Packages.qtdeclarative 37 ]; 38 39 meta = { 40 description = "Qt and QML MPRIS interface and adaptor"; 41 homepage = "https://github.com/deepin-community/qt6mpris"; 42 license = lib.licenses.lgpl21Plus; 43 platforms = lib.platforms.linux; 44 teams = [ lib.teams.deepin ]; 45 }; 46})