nixpkgs/pkgs/desktops/deepin/dtkwm/default.nix

59 lines
1.1 KiB
Nix
Raw Normal View History

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