Skip to content

Commit

Permalink
lomiri.lomiri-url-dispatcher: Fix libexec binary location in services
Browse files Browse the repository at this point in the history
  • Loading branch information
OPNA2608 committed Nov 27, 2024
1 parent 47e0d37 commit bd1f484
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ stdenv.mkDerivation (finalAttrs: {
cmakeFlags = [
(lib.cmakeBool "LOCAL_INSTALL" true)
(lib.cmakeBool "enable_mirclient" false)
# libexec has binaries that services will run
# To reduce size for non-Lomiri situations that pull this package in (i.e. ayatana indicators)
# we want only the solib in lib output
# But service files have LIBEXECDIR path hardcoded, which would need manual fixing if using moveToOutput in fixup
# Just tell it to put libexec stuff into other output
(lib.cmakeFeature "CMAKE_INSTALL_LIBEXECDIR" "${placeholder "out"}/libexec")
];

doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
Expand Down Expand Up @@ -153,7 +159,6 @@ stdenv.mkDerivation (finalAttrs: {

postFixup = ''
moveToOutput share $out
moveToOutput libexec $out
'';

passthru = {
Expand Down

0 comments on commit bd1f484

Please sign in to comment.