2018-09-02 19:15:51 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, qtmultimedia,
|
|
|
|
qtsvg, qtx11extras, librsvg, libstartup_notification, gsettings-qt,
|
2018-10-30 22:17:45 +00:00
|
|
|
dde-qt-dbus-factory, dtkcore, deepin }:
|
2018-09-02 19:15:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "dtkwidget";
|
2018-12-16 14:18:36 +00:00
|
|
|
version = "2.0.9.10";
|
2018-09-02 19:15:51 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-12-16 14:18:36 +00:00
|
|
|
sha256 = "0757dzy82bfv97b1gzkwa9zx3jzfbap20v3r1h7lkfcfw95410iw";
|
2018-09-02 19:15:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2018-10-30 22:17:45 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
2018-09-02 19:15:51 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|