-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deepin.deepin-shortcut-viewer: init at 5.0.7
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
pkgs/desktops/deepin/apps/deepin-shortcut-viewer/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ 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 | ||
qt5platform-plugins | ||
]; | ||
|
||
qmakeFlags = [ | ||
"VERSION=${version}" | ||
"PREFIX=${placeholder "out"}" | ||
]; | ||
|
||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH | ||
qtWrapperArgs = [ | ||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}" | ||
]; | ||
|
||
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; | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters