From 4d3d768e438422e09585f5284858cb48fc157a64 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Fri, 25 Oct 2024 18:57:06 +0200 Subject: [PATCH] lomiri.lomiri-url-dispatcher: Split library into separate output To reduce the download closure of libayatana-common from 962.7M to 63.2M. Not every libayatana-common user needs to install Lomiri now :) --- .../lomiri/services/lomiri-url-dispatcher/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/desktops/lomiri/services/lomiri-url-dispatcher/default.nix b/pkgs/desktops/lomiri/services/lomiri-url-dispatcher/default.nix index 77e22e646fbc2..d26ae0780da24 100644 --- a/pkgs/desktops/lomiri/services/lomiri-url-dispatcher/default.nix +++ b/pkgs/desktops/lomiri/services/lomiri-url-dispatcher/default.nix @@ -43,6 +43,7 @@ stdenv.mkDerivation (finalAttrs: { outputs = [ "out" "dev" + "lib" ]; patches = [ @@ -150,6 +151,11 @@ stdenv.mkDerivation (finalAttrs: { wrapQtApp $out/bin/lomiri-url-dispatcher-gui ''; + postFixup = '' + moveToOutput share $out + moveToOutput libexec $out + ''; + passthru = { tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; updateScript = gitUpdater { };