From ba5176551e2facd5c9e4d43c0b1393f5608a058a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Mon, 10 Sep 2018 03:47:17 -0300 Subject: [PATCH] dtkwm: init at 2.0.9 (#46461) --- pkgs/desktops/deepin/default.nix | 1 + pkgs/desktops/deepin/dtkwm/default.nix | 39 ++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/desktops/deepin/dtkwm/default.nix diff --git a/pkgs/desktops/deepin/default.nix b/pkgs/desktops/deepin/default.nix index 49da151eefee..99ae05642d97 100644 --- a/pkgs/desktops/deepin/default.nix +++ b/pkgs/desktops/deepin/default.nix @@ -17,6 +17,7 @@ let wnck = pkgs.libwnck3; }; dtkcore = callPackage ./dtkcore { }; + dtkwm = callPackage ./dtkwm { }; dtkwidget = callPackage ./dtkwidget { }; go-dbus-factory = callPackage ./go-dbus-factory { }; go-dbus-generator = callPackage ./go-dbus-generator { }; diff --git a/pkgs/desktops/deepin/dtkwm/default.nix b/pkgs/desktops/deepin/dtkwm/default.nix new file mode 100644 index 000000000000..46ed7bcc3bef --- /dev/null +++ b/pkgs/desktops/deepin/dtkwm/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchFromGitHub, pkgconfig, qmake, qtx11extras, dtkcore }: + +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" + ''; + + 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 ]; + }; +}