From 189c87627ed290db74050d4e6f1bdd67873062e8 Mon Sep 17 00:00:00 2001 From: wxlyyy <1556588440@qq.com> Date: Mon, 29 Dec 2025 16:59:44 +0800 Subject: [PATCH] Nix: Add calendarSupport override option for the package --- nix/package.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/nix/package.nix b/nix/package.nix index c3de90990..ec5668fc9 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -16,6 +16,15 @@ imagemagick, wget, gpu-screen-recorder, # optional + # calendar support + calendarSupport ? false, + python3, + evolution-data-server, + libical, + glib, + libsoup_3, + json-glib, + gobject-introspection, }: let src = lib.cleanSourceWith { @@ -35,6 +44,7 @@ let /shell.nix /lefthook.yml /CLAUDE.md + /CREDITS.md ]); }; @@ -51,6 +61,16 @@ let ] ++ lib.optionals (stdenvNoCC.hostPlatform.system == "x86_64-linux") [ gpu-screen-recorder + ] + ++ lib.optional calendarSupport (python3.withPackages (pp: [ pp.pygobject3 ])); + + giTypelibPath = lib.makeSearchPath "lib/girepository-1.0" [ + evolution-data-server + libical + glib.out + libsoup_3 + json-glib + gobject-introspection ]; in stdenvNoCC.mkDerivation { @@ -76,6 +96,7 @@ stdenvNoCC.mkDerivation { qtWrapperArgs+=( --prefix PATH : ${lib.makeBinPath runtimeDeps} --add-flags "-p $out/share/noctalia-shell" + ${lib.optionalString calendarSupport "--prefix GI_TYPELIB_PATH : ${giTypelibPath}"} ) '';