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

54 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, qtmultimedia,
2018-09-02 19:15:51 +01:00
qtsvg, qtx11extras, librsvg, libstartup_notification, gsettings-qt,
2018-10-30 22:17:45 +00:00
dde-qt-dbus-factory, dtkcore, deepin }:
2018-09-02 19:15:51 +01:00
mkDerivation rec {
2018-09-02 19:15:51 +01:00
name = "${pname}-${version}";
pname = "dtkwidget";
2019-06-22 13:26:34 +01:00
version = "2.0.14";
2018-09-02 19:15:51 +01:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
2019-06-22 13:26:34 +01:00
sha256 = "11ws0rl7rhlgwbqd4nqpqxhngf4lcyfrrdq33wzxwdlk33d69i1h";
2018-09-02 19:15:51 +01:00
};
nativeBuildInputs = [
pkgconfig
qmake
qttools
];
buildInputs = [
qtmultimedia
qtsvg
qtx11extras
librsvg
libstartup_notification
gsettings-qt
dde-qt-dbus-factory
dtkcore
];
2019-07-22 04:30:24 +01:00
outRef = placeholder "out";
qmakeFlags = [
"INCLUDE_INSTALL_DIR=${outRef}/include"
"LIB_INSTALL_DIR=${outRef}/lib"
"QT_HOST_DATA=${outRef}"
];
2018-09-02 19:15:51 +01:00
enableParallelBuilding = true;
2018-10-30 22:17:45 +00:00
passthru.updateScript = deepin.updateScript { inherit name; };
2018-09-02 19:15:51 +01: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 ];
};
}