3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/deepin/qt5integration/default.nix
2019-04-02 20:12:33 -03:00

54 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, pkgconfig, qmake, mtdev, gsettings-qt ,
lxqt, qtx11extras, qtmultimedia, qtsvg, fontconfig, freetype ,
qt5dxcb-plugin, qtstyleplugins, dtkcore, dtkwidget, deepin }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "qt5integration";
version = "0.3.8";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "12d6iv2x0q2n73rscma30q31nh7h26gmhlf665gkgl2j825hlx5n";
};
nativeBuildInputs = [
pkgconfig
qmake
];
buildInputs = [
dtkcore
dtkwidget
qt5dxcb-plugin
mtdev
lxqt.libqtxdg
qtstyleplugins
qtx11extras
qtmultimedia
qtsvg
];
postPatch = ''
sed -i dstyleplugin/dstyleplugin.pro \
platformthemeplugin/qt5deepintheme-plugin.pro \
iconengineplugins/svgiconengine/svgiconengine.pro \
imageformatplugins/svg/svg.pro \
-e "s,\$\$\[QT_INSTALL_PLUGINS\],$out/$qtPluginPrefix,"
'';
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { inherit name; };
meta = with stdenv.lib; {
description = "Qt platform theme integration plugins for DDE";
homepage = https://github.com/linuxdeepin/qt5integration;
license = with licenses; [ gpl3 lgpl2Plus bsd2 ];
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}