diff options
author | Nick Cao <nickcao@nichi.co> | 2023-03-20 17:36:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 17:36:04 +0800 |
commit | d586805a5c24e643b713306dfd773a6a8f97aff6 (patch) | |
tree | 86bb14fd094cb18ada2de46be9f531bf44060197 /pkgs/desktops/deepin | |
parent | 520e52af9f80da610607a73790905eee02c6eacf (diff) | |
parent | 12a7c7e68b335d2ad7c5514a7622e9aea224eeea (diff) |
Merge pull request #221621 from wineee/deepin-shortcut-viewer
deepin.deepin-shortcut-viewer: init at 5.0.7
Diffstat (limited to 'pkgs/desktops/deepin')
-rw-r--r-- | pkgs/desktops/deepin/apps/deepin-shortcut-viewer/default.nix | 56 | ||||
-rw-r--r-- | pkgs/desktops/deepin/default.nix | 1 |
2 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/desktops/deepin/apps/deepin-shortcut-viewer/default.nix b/pkgs/desktops/deepin/apps/deepin-shortcut-viewer/default.nix new file mode 100644 index 0000000000000..dcc8a2e41c8e2 --- /dev/null +++ b/pkgs/desktops/deepin/apps/deepin-shortcut-viewer/default.nix @@ -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; + }; +} + diff --git a/pkgs/desktops/deepin/default.nix b/pkgs/desktops/deepin/default.nix index f9bbf7df5eb73..96c3d08b65dc7 100644 --- a/pkgs/desktops/deepin/default.nix +++ b/pkgs/desktops/deepin/default.nix @@ -45,6 +45,7 @@ let deepin-movie-reborn = callPackage ./apps/deepin-movie-reborn { }; deepin-music = callPackage ./apps/deepin-music { }; deepin-picker = callPackage ./apps/deepin-picker { }; + deepin-shortcut-viewer = callPackage ./apps/deepin-shortcut-viewer { }; deepin-terminal = callPackage ./apps/deepin-terminal { }; deepin-reader = callPackage ./apps/deepin-reader { }; deepin-voice-note = callPackage ./apps/deepin-voice-note { }; |