1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/desktops/deepin/dtkwidget/default.nix
José Romildo Malaquias 287db0f9b9 deepin: add update script
2018-11-10 12:27:38 -02:00

53 lines
1.2 KiB
Nix

{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, qtmultimedia,
qtsvg, qtx11extras, librsvg, libstartup_notification, gsettings-qt,
dde-qt-dbus-factory, dtkcore, deepin }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "dtkwidget";
version = "2.0.9.4";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "06iyb3ryxrqkwxdazpv8cgabqa4djldgm3q5icsa2grqrgy8vw5m";
};
nativeBuildInputs = [
pkgconfig
qmake
qttools
];
buildInputs = [
qtmultimedia
qtsvg
qtx11extras
librsvg
libstartup_notification
gsettings-qt
dde-qt-dbus-factory
dtkcore
];
preConfigure = ''
qmakeFlags="$qmakeFlags \
INCLUDE_INSTALL_DIR=$out/include \
LIB_INSTALL_DIR=$out/lib \
QT_HOST_DATA=$out"
'';
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { inherit name; };
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 ];
};
}