2019-07-22 04:53:18 +02:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, qtmultimedia,
|
2018-09-02 20:15:51 +02:00
|
|
|
qtsvg, qtx11extras, librsvg, libstartup_notification, gsettings-qt,
|
2018-10-30 23:17:45 +01:00
|
|
|
dde-qt-dbus-factory, dtkcore, deepin }:
|
2018-09-02 20:15:51 +02:00
|
|
|
|
2019-07-22 04:53:18 +02:00
|
|
|
mkDerivation rec {
|
2018-09-02 20:15:51 +02:00
|
|
|
pname = "dtkwidget";
|
2019-11-12 02:08:40 +01:00
|
|
|
version = "2.1.1";
|
2018-09-02 20:15:51 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-12 02:08:40 +01:00
|
|
|
sha256 = "0yqrm1p0k1843ldvcd79dxl26ybyl5kljl6vwhzc58sx7pw4qmvh";
|
2018-09-02 20:15:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
qmake
|
|
|
|
qttools
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtmultimedia
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
|
|
|
librsvg
|
|
|
|
libstartup_notification
|
|
|
|
gsettings-qt
|
|
|
|
dde-qt-dbus-factory
|
|
|
|
dtkcore
|
|
|
|
];
|
|
|
|
|
2019-07-22 05:30:24 +02:00
|
|
|
outRef = placeholder "out";
|
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
"INCLUDE_INSTALL_DIR=${outRef}/include"
|
|
|
|
"LIB_INSTALL_DIR=${outRef}/lib"
|
|
|
|
"QT_HOST_DATA=${outRef}"
|
|
|
|
];
|
2018-09-02 20:15:51 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-12-04 10:20:00 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
|
2018-10-30 23:17:45 +01:00
|
|
|
|
2018-09-02 20:15:51 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|