python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / qtmpris / default.nix
blobef595efa731d35f9e9bf91f652c54064735d8e1f
1 { lib
2 , mkDerivation
3 , fetchFromGitHub
4 , qmake
5 , qtbase
6 }:
8 mkDerivation rec {
9   pname = "qtmpris";
10   version = "1.0.6";
12   src = fetchFromGitHub {
13     owner = "sailfishos";
14     repo = "qtmpris";
15     rev = version;
16     hash = "sha256-kuM8hUdsa7N+eLDbwYw3ay+PWxg35zcTBOvGow1NlzI=";
17   };
19   postPatch = ''
20     substituteInPlace src/src.pro \
21       --replace '$$[QT_INSTALL_LIBS]'    "$out/lib" \
22       --replace '$$[QT_INSTALL_HEADERS]' "$out/include" \
23       --replace '$$[QMAKE_MKSPECS]'      "$out/mkspecs"
24   '';
26   nativeBuildInputs = [
27     qmake
28   ];
30   buildInputs = [
31     qtbase
32   ];
34   meta = {
35     description = "Qt and QML MPRIS interface and adaptor";
36     homepage = "https://github.com/sailfishos/qtmpris";
37     license = lib.licenses.lgpl21Plus;
38     maintainers = with lib.maintainers; [ dotlambda ];
39   };