Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 mkDerivation, 4 fetchFromGitHub, 5 qmake, 6 qtbase, 7}: 8 9mkDerivation rec { 10 pname = "qtmpris"; 11 version = "1.0.6"; 12 13 src = fetchFromGitHub { 14 owner = "sailfishos"; 15 repo = "qtmpris"; 16 rev = version; 17 hash = "sha256-kuM8hUdsa7N+eLDbwYw3ay+PWxg35zcTBOvGow1NlzI="; 18 }; 19 20 postPatch = '' 21 substituteInPlace src/src.pro \ 22 --replace '$$[QT_INSTALL_LIBS]' "$out/lib" \ 23 --replace '$$[QT_INSTALL_HEADERS]' "$out/include" \ 24 --replace '$$[QMAKE_MKSPECS]' "$out/mkspecs" 25 ''; 26 27 nativeBuildInputs = [ 28 qmake 29 ]; 30 31 buildInputs = [ 32 qtbase 33 ]; 34 35 meta = { 36 description = "Qt and QML MPRIS interface and adaptor"; 37 homepage = "https://github.com/sailfishos/qtmpris"; 38 license = lib.licenses.lgpl21Plus; 39 maintainers = with lib.maintainers; [ dotlambda ]; 40 }; 41}