keepalived add meta.mainProgram (#380296)
[NixPkgs.git] / pkgs / development / libraries / qtdbusextended / default.nix
blobc1cc09b29bc157ae760edad7b798a2c264865819
2   stdenv,
3   lib,
4   fetchFromGitHub,
5   qmake,
6   wrapQtAppsHook,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "qtdbusextended";
11   version = "0.0.3";
13   src = fetchFromGitHub {
14     owner = "nemomobile";
15     repo = pname;
16     rev = version;
17     sha256 = "sha256-tUp7OhNBXwomR2tO4UOaR0vJQ3GTirMk/hRl1cMk61o=";
18   };
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   '';
27   nativeBuildInputs = [
28     qmake
29     wrapQtAppsHook
30   ];
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   };