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

53 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, qtmultimedia,
2018-09-02 20:15:51 +02:00
qtsvg, qtx11extras, librsvg, libstartup_notification, gsettings-qt,
2018-10-30 23:17:45 +01:00
dde-qt-dbus-factory, dtkcore, deepin }:
2018-09-02 20:15:51 +02:00
mkDerivation rec {
2018-09-02 20:15:51 +02:00
pname = "dtkwidget";
2019-06-22 14:26:34 +02:00
version = "2.0.14";
2018-09-02 20:15:51 +02:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
2019-06-22 14:26:34 +02:00
sha256 = "11ws0rl7rhlgwbqd4nqpqxhngf4lcyfrrdq33wzxwdlk33d69i1h";
2018-09-02 20:15:51 +02:00
};
nativeBuildInputs = [
pkgconfig
qmake
qttools
];
buildInputs = [
qtmultimedia
qtsvg
qtx11extras
librsvg
libstartup_notification
gsettings-qt
dde-qt-dbus-factory
dtkcore
];
2019-07-22 05:30:24 +02:00
outRef = placeholder "out";
qmakeFlags = [
"INCLUDE_INSTALL_DIR=${outRef}/include"
"LIB_INSTALL_DIR=${outRef}/lib"
"QT_HOST_DATA=${outRef}"
];
2018-09-02 20:15:51 +02:00
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { inherit ;name = "${pname}-${version}"; };
2018-10-30 23:17:45 +01:00
2018-09-02 20:15:51 +02:00
meta = with stdenv.lib; {
description = "Deepin graphical user interface library";
homepage = https://github.com/linuxdeepin/dtkwidget;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}