modules/programs: sandbox: fix "inline" -> "inplace" typo

This commit is contained in:
2024-01-27 14:42:25 +00:00
parent b22c2e094c
commit 26b978dcf2

View File

@@ -61,14 +61,15 @@ let
# here we switch between the options. # here we switch between the options.
# note that no.2 ("wrappedDerivation") *doesn't support .desktop files yet*. # note that no.2 ("wrappedDerivation") *doesn't support .desktop files yet*.
# the final package simply doesn't include .desktop files, only bin/. # the final package simply doesn't include .desktop files, only bin/.
package' = if wrapperType == "inline" && package.override.__functionArgs ? runCommand then package' = if wrapperType == "inplace" then
if package.override.__functionArgs ? runCommand then
package.override { package.override {
runCommand = name: env: cmd: runCommand name env (cmd + lib.optionalString (name == package.name) '' runCommand = name: env: cmd: runCommand name env (cmd + lib.optionalString (name == package.name) ''
# if the package is a runCommand (common for wrappers), then patch it to call our `postFixup` hook, first # if the package is a runCommand (common for wrappers), then patch it to call our `postFixup` hook, first
runHook postFixup runHook postFixup
''); '');
} }
else if wrapperType == "inline" then else
package package
else if wrapperType == "wrappedDerivation" then else if wrapperType == "wrappedDerivation" then
symlinkBinaries pkgName package symlinkBinaries pkgName package