nixpkgs/pkgs/desktops/deepin/apps/deepin-shortcut-viewer/default.nix
rewine fabfca721c
deepin: don't need prefix qt5integration for all application
Seems only in dde-dock/dde-launcher/dde-control-center/dde-session-ui/dde-session-shell
qt5integration must be placed before qtsvg in QT_PLUGIN_PATH,
otherwise part of the svg cannot be rendered correctly
2023-04-07 16:20:54 +08:00

53 lines
904 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, dtkwidget
, qt5integration
, qt5platform-plugins
, qmake
, qtbase
, qttools
, pkg-config
, wrapQtAppsHook
}:
stdenv.mkDerivation rec {
pname = "deepin-shortcut-viewer";
version = "5.0.7";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-r/ZhA9yiPnJNTrBkVOvaTqfRvGO/NTod5tiQCquG5Gw=";
};
nativeBuildInputs = [
qmake
qttools
pkg-config
wrapQtAppsHook
];
buildInputs = [
qtbase
dtkwidget
qt5integration
qt5platform-plugins
];
qmakeFlags = [
"VERSION=${version}"
"PREFIX=${placeholder "out"}"
];
meta = with lib; {
description = "Deepin Shortcut Viewer";
homepage = "https://github.com/linuxdeepin/deepin-shortcut-viewer";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}