diff options
Diffstat (limited to 'nixpkgs/pkgs/desktops/deepin/core/dde-calendar/default.nix')
-rw-r--r-- | nixpkgs/pkgs/desktops/deepin/core/dde-calendar/default.nix | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/desktops/deepin/core/dde-calendar/default.nix b/nixpkgs/pkgs/desktops/deepin/core/dde-calendar/default.nix new file mode 100644 index 000000000000..28bedd7187ac --- /dev/null +++ b/nixpkgs/pkgs/desktops/deepin/core/dde-calendar/default.nix @@ -0,0 +1,70 @@ +{ stdenv +, lib +, fetchFromGitHub +, cmake +, qttools +, pkg-config +, wrapQtAppsHook +, dtkwidget +, qt5integration +, qt5platform-plugins +, dde-qt-dbus-factory +, qtbase +, qtsvg +, libical +, sqlite +, runtimeShell +}: + +stdenv.mkDerivation rec { + pname = "dde-calendar"; + version = "5.11.0"; + + src = fetchFromGitHub { + owner = "linuxdeepin"; + repo = pname; + rev = version; + hash = "sha256-AgomXDydGHzfybE3r4IW94zIWKtwURmLW68MwqjLBWE="; + }; + + patches = [ + ./fix-wrapped-name-not-in-whitelist.diff + ]; + + postPatch = '' + for file in $(grep -rl "/bin/bash"); do + substituteInPlace $file --replace "/bin/bash" "${runtimeShell}" + done + ''; + + nativeBuildInputs = [ + cmake + qttools + pkg-config + wrapQtAppsHook + ]; + + buildInputs = [ + qt5integration + qt5platform-plugins + dtkwidget + qtbase + qtsvg + dde-qt-dbus-factory + libical + sqlite + ]; + + cmakeFlags = [ "-DVERSION=${version}" ]; + + strictDeps = true; + + meta = with lib; { + description = "Calendar for Deepin Desktop Environment"; + homepage = "https://github.com/linuxdeepin/dde-calendar"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = teams.deepin.members; + }; +} + |