2020-05-03 21:52:19 +02:00
|
|
|
{ stdenv
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, qmake
|
|
|
|
, qttools
|
|
|
|
, qtmultimedia
|
|
|
|
, qtsvg
|
|
|
|
, qtx11extras
|
|
|
|
, librsvg
|
|
|
|
, libstartup_notification
|
|
|
|
, gsettings-qt
|
|
|
|
, 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;
|
|
|
|
|
2020-05-03 22:03:55 +02:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit pname version src; };
|
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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/linuxdeepin/dtkwidget";
|
2018-09-02 20:15:51 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|