mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
parabolic: patch out bypassing wrapped executables
Resolves #406983.
Co-authored-by: Seth Flynn <getchoo@tuta.io>
(cherry picked from commit e67aaa327a)
This commit is contained in:
committed by
github-actions[bot]
parent
c0e82e2db2
commit
c7f2a1e5f4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user