gradle: don't depend on bubblewrap if unused

This commit is contained in:
Emily Trau
2024-08-01 16:26:50 +02:00
committed by Bjørn Forsman
parent b47895e4bd
commit 44619227fe
@@ -52,10 +52,10 @@ writeTextFile {
text = ''
#!${runtimeShell}
set -eo pipefail
export PATH="${lib.makeBinPath [
bubblewrap coreutils curl jq mitm-cache openssl
export PATH="${lib.makeBinPath ([
coreutils curl jq mitm-cache openssl
procps python3.pkgs.ephemeral-port-reserve
]}:$PATH"
] ++ lib.optional useBwrap bubblewrap)}:$PATH"
outPath="${
# if this is an absolute path in nix store, use path relative to the store path
if lib.hasPrefix "${builtins.storeDir}/" (toString data)