lomiri.lomiri-url-dispatcher: Fix libexec binary location in services (#359687)

This commit is contained in:
Cosima Neidahl 2024-11-29 00:06:31 +01:00 committed by GitHub
commit 42e77274c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
@ -153,7 +159,6 @@ stdenv.mkDerivation (finalAttrs: {
postFixup = ''
moveToOutput share $out
moveToOutput libexec $out
'';
passthru = {