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