about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/qtdbusextended/default.nix
blob: 22fa37611dd58a4568f3d13b633127288f6fb80d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv
, lib
, fetchFromGitHub
, qmake
, wrapQtAppsHook
}:

stdenv.mkDerivation rec {
  pname = "qtdbusextended";
  version = "0.0.3";

  src = fetchFromGitHub {
    owner = "nemomobile";
    repo = pname;
    rev = version;
    sha256 = "sha256-tUp7OhNBXwomR2tO4UOaR0vJQ3GTirMk/hRl1cMk61o=";
  };

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

  nativeBuildInputs = [
    qmake
    wrapQtAppsHook
  ];

  meta = with lib; {
    description = "Qt provides several classes for DBus communication";
    homepage = "https://github.com/nemomobile/qtdbusextended";
    license = licenses.lgpl2Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ rewine ];
  };
}