depot/pkgs/desktops/deepin/core/dde-calendar/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

66 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
cmake,
pkg-config,
libsForQt5,
dtkwidget,
qt5integration,
qt5platform-plugins,
dde-qt-dbus-factory,
libical,
sqlite,
runtimeShell,
}:
stdenv.mkDerivation rec {
pname = "dde-calendar";
version = "5.14.4";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-bZxNOBtLjop0eYxpMeoomaWYvPcMyDfQfgGPK9m+ARo=";
};
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
libsForQt5.qttools
pkg-config
libsForQt5.wrapQtAppsHook
];
buildInputs = [
qt5integration
qt5platform-plugins
dtkwidget
libsForQt5.qtbase
libsForQt5.qtsvg
dde-qt-dbus-factory
libical
sqlite
];
cmakeFlags = [ "-DVERSION=${version}" ];
strictDeps = true;
meta = with lib; {
description = "Calendar for Deepin Desktop Environment";
mainProgram = "dde-calendar";
homepage = "https://github.com/linuxdeepin/dde-calendar";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}