2019-11-12 01:08:40 +00:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, fetchpatch, pkgconfig, qmake, qtx11extras, dtkcore, deepin }:
|
2018-09-10 06:47:17 +00:00
|
|
|
|
2019-07-22 02:53:18 +00:00
|
|
|
mkDerivation rec {
|
2018-09-10 06:47:17 +00:00
|
|
|
pname = "dtkwm";
|
2019-11-12 01:08:40 +00:00
|
|
|
version = "2.0.12";
|
2018-09-10 06:47:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-12 01:08:40 +00:00
|
|
|
sha256 = "0rdzzqsggqarldwb4yp5s4sf5czicgxbdmibjn0pw32129r2d1g3";
|
2018-09-10 06:47:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dtkcore
|
|
|
|
qtx11extras
|
|
|
|
];
|
|
|
|
|
2019-11-12 01:08:40 +00:00
|
|
|
patches = [
|
|
|
|
# Set DTK_MODULE_NAME
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/linuxdeepin/dtkwm/commit/2490891a.patch";
|
|
|
|
sha256 = "0krydxjpnaihkgs1n49b6mcf3rd3lkispcnkb1j5vpfs9hp9f48j";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-07-22 03:26:05 +00:00
|
|
|
outRef = placeholder "out";
|
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
"QT_HOST_DATA=${outRef}"
|
|
|
|
"INCLUDE_INSTALL_DIR=${outRef}/include"
|
|
|
|
"LIB_INSTALL_DIR=${outRef}/lib"
|
|
|
|
];
|
2018-09-10 06:47:17 +00:00
|
|
|
|
2019-12-04 09:20:00 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
|
2018-10-30 22:17:45 +00:00
|
|
|
|
2018-09-10 06:47:17 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Deepin graphical user interface library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/linuxdeepin/dtkwm";
|
2018-09-10 06:47:17 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|