parabolic: patch out bypassing wrapped executables

Resolves #406983.

Co-authored-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
JS (normalc/ea)
2025-05-16 14:24:15 -04:00
parent b17f634172
commit e67aaa327a

View File

@@ -40,6 +40,17 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-B8/e5urhy5tAgHNd/PR3HlNQd0M0CxgC56nArFGlQ9c=";
};
# Patches desktop file/dbus service bypassing wrapped executable
postPatch = ''
substituteInPlace "resources/linux/org.nickvision.tubeconverter.desktop.in" \
--replace-fail "@CMAKE_INSTALL_FULL_LIBDIR@/@PROJECT_NAME@/@OUTPUT_NAME@" \
"@PROJECT_NAME@"
substituteInPlace "resources/linux/org.nickvision.tubeconverter.service.in" \
--replace-fail "@CMAKE_INSTALL_FULL_LIBDIR@/@PROJECT_NAME@/@OUTPUT_NAME@" \
"@CMAKE_INSTALL_FULL_BINDIR@/@PROJECT_NAME@"
'';
nativeBuildInputs =
[
cmake