summary refs log tree commit diff
path: root/pkgs/tools/misc/qt5ct/default.nix
blob: dd62fe461c6f237a84bc7ec8d36b418b72e9d350 (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
{ stdenv, fetchurl, qtbase, qtsvg, qttools, qmakeHook, makeQtWrapper }:

stdenv.mkDerivation rec {
  name = "qt5ct-${version}";
  version = "0.32";

  src = fetchurl {
    url = "mirror://sourceforge/qt5ct/qt5ct-${version}.tar.bz2";
    sha256 = "0gzmqx6j8g8vgdg5sazfw31h825jdsjbkj8lk167msvahxgrf0fm";
  };

  nativeBuildInputs = [ makeQtWrapper qmakeHook qttools ];

  buildInputs = [ qtbase qtsvg ];

  preConfigure = ''
    qmakeFlags="$qmakeFlags PLUGINDIR=$out/lib/qt5/plugins"
  '';

  preFixup = ''
    wrapQtProgram $out/bin/qt5ct
  '';

  meta = with stdenv.lib; {
    description = "Qt5 Configuration Tool";
    homepage = https://www.opendesktop.org/content/show.php?content=168066;
    platforms = platforms.linux;
    license = licenses.bsd2;
    maintainers = with maintainers; [ ralith ];
  };
}