nixpkgs/pkgs/desktops/deepin/dtkwidget/default.nix
worldofpeace 735199a210 deepin: use qt5.mkDerivation where needed, cleanup wrappers
This switches a majority of the applications to using qt5.mkDerivation
which automatically adds wrapQtAppsHook.

In certain places, where GLib and gtk intersect with Qt, we
also needed to use wrapGAppsHook. In these cases there will
be multiple wrappers.
2019-07-21 23:49:36 -04:00

53 lines
1.2 KiB
Nix

{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, qtmultimedia,
qtsvg, qtx11extras, librsvg, libstartup_notification, gsettings-qt,
dde-qt-dbus-factory, dtkcore, deepin }:
mkDerivation rec {
name = "${pname}-${version}";
pname = "dtkwidget";
version = "2.0.14";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "11ws0rl7rhlgwbqd4nqpqxhngf4lcyfrrdq33wzxwdlk33d69i1h";
};
nativeBuildInputs = [
pkgconfig
qmake
qttools
];
buildInputs = [
qtmultimedia
qtsvg
qtx11extras
librsvg
libstartup_notification
gsettings-qt
dde-qt-dbus-factory
dtkcore
];
preConfigure = ''
qmakeFlags="$qmakeFlags \
INCLUDE_INSTALL_DIR=$out/include \
LIB_INSTALL_DIR=$out/lib \
QT_HOST_DATA=$out"
'';
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { inherit name; };
meta = with stdenv.lib; {
description = "Deepin graphical user interface library";
homepage = https://github.com/linuxdeepin/dtkwidget;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}