Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / qtdbusextended / default.nix
blob22fa37611dd58a4568f3d13b633127288f6fb80d
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , qmake
5 , wrapQtAppsHook
6 }:
8 stdenv.mkDerivation rec {
9   pname = "qtdbusextended";
10   version = "0.0.3";
12   src = fetchFromGitHub {
13     owner = "nemomobile";
14     repo = pname;
15     rev = version;
16     sha256 = "sha256-tUp7OhNBXwomR2tO4UOaR0vJQ3GTirMk/hRl1cMk61o=";
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     wrapQtAppsHook
29   ];
31   meta = with lib; {
32     description = "Qt provides several classes for DBus communication";
33     homepage = "https://github.com/nemomobile/qtdbusextended";
34     license = licenses.lgpl2Plus;
35     platforms = platforms.linux;
36     maintainers = with maintainers; [ rewine ];
37   };