3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/deepin/dtkwm/default.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

2019-11-12 01:08:40 +00:00
{ stdenv, mkDerivation, fetchFromGitHub, fetchpatch, pkgconfig, qmake, qtx11extras, dtkcore, deepin }:
2018-09-10 07:47:17 +01:00
mkDerivation rec {
2018-09-10 07:47:17 +01:00
pname = "dtkwm";
2019-11-12 01:08:40 +00:00
version = "2.0.12";
2018-09-10 07:47:17 +01:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
2019-11-12 01:08:40 +00:00
sha256 = "0rdzzqsggqarldwb4yp5s4sf5czicgxbdmibjn0pw32129r2d1g3";
2018-09-10 07:47:17 +01: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 04:26:05 +01:00
outRef = placeholder "out";
qmakeFlags = [
"QT_HOST_DATA=${outRef}"
"INCLUDE_INSTALL_DIR=${outRef}/include"
"LIB_INSTALL_DIR=${outRef}/lib"
];
2018-09-10 07:47:17 +01:00
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
2018-10-30 22:17:45 +00:00
2018-09-10 07:47:17 +01:00
meta = with stdenv.lib; {
description = "Deepin graphical user interface library";
homepage = https://github.com/linuxdeepin/dtkwm;
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}