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

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

View File

@ -61,15 +61,16 @@ 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
package.override { if package.override.__functionArgs ? runCommand then
runCommand = name: env: cmd: runCommand name env (cmd + lib.optionalString (name == package.name) '' package.override {
# if the package is a runCommand (common for wrappers), then patch it to call our `postFixup` hook, first runCommand = name: env: cmd: runCommand name env (cmd + lib.optionalString (name == package.name) ''
runHook postFixup # if the package is a runCommand (common for wrappers), then patch it to call our `postFixup` hook, first
''); runHook postFixup
} '');
else if wrapperType == "inline" then }
package else
package
else if wrapperType == "wrappedDerivation" then else if wrapperType == "wrappedDerivation" then
symlinkBinaries pkgName package symlinkBinaries pkgName package
else else