Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 qmake, 6 wrapQtAppsHook, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "qtdbusextended"; 11 version = "0.0.3"; 12 13 src = fetchFromGitHub { 14 owner = "nemomobile"; 15 repo = pname; 16 rev = version; 17 sha256 = "sha256-tUp7OhNBXwomR2tO4UOaR0vJQ3GTirMk/hRl1cMk61o="; 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 wrapQtAppsHook 30 ]; 31 32 meta = with lib; { 33 description = "Qt provides several classes for DBus communication"; 34 homepage = "https://github.com/nemomobile/qtdbusextended"; 35 license = licenses.lgpl2Plus; 36 platforms = platforms.linux; 37 maintainers = with maintainers; [ rewine ]; 38 }; 39}