diff options
author | Yureka <yuka@yuka.dev> | 2023-04-26 15:18:38 +0200 |
---|---|---|
committer | Yureka <yuka@yuka.dev> | 2023-04-26 16:30:41 +0200 |
commit | 7a32a141db568abde9bc389845949dc2a454dfd3 (patch) | |
tree | 100211def02c21cafd58070b8540528a40411751 /pkgs/applications | |
parent | bad5e4f489deca29c8d259e2a530746fe16b2e51 (diff) | |
download | nixpkgs-7a32a141db568abde9bc389845949dc2a454dfd3.tar nixpkgs-7a32a141db568abde9bc389845949dc2a454dfd3.tar.gz nixpkgs-7a32a141db568abde9bc389845949dc2a454dfd3.tar.bz2 nixpkgs-7a32a141db568abde9bc389845949dc2a454dfd3.tar.lz nixpkgs-7a32a141db568abde9bc389845949dc2a454dfd3.tar.xz nixpkgs-7a32a141db568abde9bc389845949dc2a454dfd3.tar.zst nixpkgs-7a32a141db568abde9bc389845949dc2a454dfd3.zip |
firefox: fix indentation
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/browsers/firefox/common.nix | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index d8a14c2d67a..46d99f9c5a6 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -307,37 +307,37 @@ buildStdenv.mkDerivation ({ # RBox WASM Sandboxing export WASM_CC=${pkgsCross.wasi32.stdenv.cc}/bin/${pkgsCross.wasi32.stdenv.cc.targetPrefix}cc export WASM_CXX=${pkgsCross.wasi32.stdenv.cc}/bin/${pkgsCross.wasi32.stdenv.cc.targetPrefix}c++ - '' + lib.optionalString pgoSupport '' - if [ -e "$TMPDIR/merged.profdata" ]; then - echo "Configuring with profiling data" - for i in "''${!configureFlagsArray[@]}"; do - if [[ ''${configureFlagsArray[i]} = "--enable-profile-generate=cross" ]]; then - unset 'configureFlagsArray[i]' - fi - done - configureFlagsArray+=( - "--enable-profile-use=cross" - "--with-pgo-profile-path="$TMPDIR/merged.profdata"" - "--with-pgo-jarlog="$TMPDIR/jarlog"" - ) - ${lib.optionalString stdenv.hostPlatform.isMusl '' - LDFLAGS="$OLD_LDFLAGS" - unset OLD_LDFLAGS - ''} - else - echo "Configuring to generate profiling data" - configureFlagsArray+=( - "--enable-profile-generate=cross" - ) - ${lib.optionalString stdenv.hostPlatform.isMusl - # Set the rpath appropriately for the profiling run - # During the profiling run, loading libraries from $out would fail, - # since the profiling build has not been installed to $out - '' - OLD_LDFLAGS="$LDFLAGS" - LDFLAGS="-Wl,-rpath,$(pwd)/mozobj/dist/${binaryName}" - ''} - fi + '' + lib.optionalString pgoSupport '' + if [ -e "$TMPDIR/merged.profdata" ]; then + echo "Configuring with profiling data" + for i in "''${!configureFlagsArray[@]}"; do + if [[ ''${configureFlagsArray[i]} = "--enable-profile-generate=cross" ]]; then + unset 'configureFlagsArray[i]' + fi + done + configureFlagsArray+=( + "--enable-profile-use=cross" + "--with-pgo-profile-path="$TMPDIR/merged.profdata"" + "--with-pgo-jarlog="$TMPDIR/jarlog"" + ) + ${lib.optionalString stdenv.hostPlatform.isMusl '' + LDFLAGS="$OLD_LDFLAGS" + unset OLD_LDFLAGS + ''} + else + echo "Configuring to generate profiling data" + configureFlagsArray+=( + "--enable-profile-generate=cross" + ) + ${lib.optionalString stdenv.hostPlatform.isMusl + # Set the rpath appropriately for the profiling run + # During the profiling run, loading libraries from $out would fail, + # since the profiling build has not been installed to $out + '' + OLD_LDFLAGS="$LDFLAGS" + LDFLAGS="-Wl,-rpath,$(pwd)/mozobj/dist/${binaryName}" + ''} + fi '' + lib.optionalString googleAPISupport '' # Google API key used by Chromium and Firefox. # Note: These are for NixOS/nixpkgs use ONLY. For your own distribution, |