Skip to content

Commit

Permalink
libsForQt5.qtmpris: init at 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed May 16, 2022
1 parent b0f5e8c commit c24e46a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pkgs/development/libraries/qtmpris/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ lib
, mkDerivation
, fetchFromGitHub
, qmake
, qtbase
}:

mkDerivation rec {
pname = "qtmpris";
version = "1.0.6";

src = fetchFromGitHub {
owner = "sailfishos";
repo = "qtmpris";
rev = version;
hash = "sha256-kuM8hUdsa7N+eLDbwYw3ay+PWxg35zcTBOvGow1NlzI=";
};

postPatch = ''
substituteInPlace src/src.pro \
--replace '$$[QT_INSTALL_LIBS]' "$out/lib" \
--replace '$$[QT_INSTALL_HEADERS]' "$out/include" \
--replace '$$[QMAKE_MKSPECS]' "$out/mkspecs"
'';

nativeBuildInputs = [
qmake
];

buildInputs = [
qtbase
];

meta = {
description = "Qt and QML MPRIS interface and adaptor";
homepage = "https://github.com/sailfishos/qtmpris";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/qt5-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ in (kdeFrameworks // plasmaMobileGear // plasma5 // plasma5.thirdParty // kdeGea
inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation Security;
};

qtmpris = callPackage ../development/libraries/qtmpris { };

qtpbfimageplugin = callPackage ../development/libraries/qtpbfimageplugin { };

qtstyleplugins = callPackage ../development/libraries/qtstyleplugins { };
Expand Down

0 comments on commit c24e46a

Please sign in to comment.