1{
2 lib,
3 mkDerivation,
4 fetchFromGitHub,
5 fetchpatch,
6 qmake,
7 pkg-config,
8 gtk2,
9}:
10
11mkDerivation {
12 pname = "qtstyleplugins";
13 version = "unstable-2017-03-11";
14
15 src = fetchFromGitHub {
16 owner = "qt";
17 repo = "qtstyleplugins";
18 rev = "335dbece103e2cbf6c7cf819ab6672c2956b17b3";
19 sha256 = "085wyn85nrmzr8nv5zv7fi2kqf8rp1gnd30h72s30j55xvhmxvmy";
20 };
21
22 patches = [
23 (fetchpatch rec {
24 name = "0001-fix-build-against-Qt-5.15.patch";
25 url = "https://aur.archlinux.org/cgit/aur.git/plain/${name}?h=qt5-styleplugins";
26 sha256 = "j0CgfutqFawy11IqFnlrkfMsMD01NjX/MkfVEVxj1QM=";
27 })
28 (fetchpatch rec {
29 name = "0002-fix-gtk2-background.patch";
30 url = "https://aur.archlinux.org/cgit/aur.git/plain/${name}?h=qt5-styleplugins";
31 sha256 = "qUOkNckrSUEzXY1PUZKfbiCjhNyB5ZBw2IN/j32GKM4=";
32 })
33 ];
34
35 nativeBuildInputs = [
36 pkg-config
37 qmake
38 ];
39 buildInputs = [ gtk2 ];
40
41 meta = with lib; {
42 description = "Additional style plugins for Qt5, including BB10, GTK, Cleanlooks, Motif, Plastique";
43 homepage = "http://blog.qt.io/blog/2012/10/30/cleaning-up-styles-in-qt5-and-adding-fusion/";
44 license = licenses.lgpl21;
45 maintainers = [ ];
46 platforms = platforms.linux;
47 };
48}