summary refs log tree commit diff
path: root/pkgs/development/libraries/qgnomeplatform/default.nix
blob: 94c69a4a14b3601d271a09ada4cb803e1acbd9cd (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
{ mkDerivation, lib, fetchFromGitHub, pkgconfig, gtk3, qtbase, qmake }:

mkDerivation rec {
  pname = "qgnomeplatform";
  version = "0.5";

  src = fetchFromGitHub {
    owner = "FedoraQt";
    repo = "QGnomePlatform";
    rev = version;
    sha256 = "01ncj21cxd5p7pch6p3zbhv5wp0dgn9vy5hrw54g49fmqnbb1ymz";
  };

  nativeBuildInputs = [
    pkgconfig
    qmake
  ];

  buildInputs = [
    gtk3
    qtbase
  ];

  postPatch = ''
    # Fix plugin dir
    substituteInPlace qgnomeplatform.pro \
      --replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
  '';

  meta = with lib; {
    description = "QPlatformTheme for a better Qt application inclusion in GNOME";
    homepage = https://github.com/FedoraQt/QGnomePlatform;
    license = licenses.lgpl21Plus;
    maintainers = with maintainers; [ worldofpeace ];
    platforms = platforms.linux;
  };
}