nixpkgs/pkgs/desktops/deepin/dtkwm/default.nix
José Romildo Malaquias 287db0f9b9 deepin: add update script
2018-11-10 12:27:38 -02:00

43 lines
936 B
Nix

{ stdenv, fetchFromGitHub, pkgconfig, qmake, qtx11extras, dtkcore,
deepin }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "dtkwm";
version = "2.0.9";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "0vkx6vlz83pgawhdwqkwpq3dy8whxmjdzfpgrvm2m6jmspfk9bab";
};
nativeBuildInputs = [
pkgconfig
qmake
];
buildInputs = [
dtkcore
qtx11extras
];
preConfigure = ''
qmakeFlags="$qmakeFlags \
QT_HOST_DATA=$out \
INCLUDE_INSTALL_DIR=$out/include \
LIB_INSTALL_DIR=$out/lib"
'';
passthru.updateScript = deepin.updateScript { inherit name; };
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 ];
};
}