From 059cd38e7bd1d7d1fc87ea3fdae6212a5b613bf8 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 7 Dec 2023 06:38:15 +0000 Subject: [PATCH] cross: comment out the firefox hacks they're unused and broken anyway --- overlays/cross.nix | 82 +++++++++++++++++++++++----------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/overlays/cross.nix b/overlays/cross.nix index 47e157e34..7266c945c 100644 --- a/overlays/cross.nix +++ b/overlays/cross.nix @@ -641,36 +641,36 @@ in with final; { # # # }; - firefox-extensions = prev.firefox-extensions.overrideScope' (self: super: { - unwrapped = super.unwrapped // { - browserpass-extension = super.unwrapped.browserpass-extension.override { - mkYarnModules = args: needsBinfmtOrQemu { - override = { stdenv }: ( - (yarn2nix-moretea.override { - pkgs = pkgs.__splicedPackages // { inherit stdenv; }; - }).mkYarnModules args - ).overrideAttrs (upstream: { - # i guess the VM creates the output directory for the derivation? not sure. - # and `mv` across the VM boundary breaks, too? - # original errors: - # - "mv: cannot create directory <$out>: File exists" - # - "mv: failed to preserve ownership for" - buildPhase = lib.replaceStrings - [ - "mkdir $out" - "mv " - ] - [ - "mkdir $out || true ; chmod +w deps/browserpass-extension-modules/package.json" - "cp -Rv " - ] - upstream.buildPhase - ; - }); - }; - }; - }; - }); + # firefox-extensions = prev.firefox-extensions.overrideScope' (self: super: { + # unwrapped = super.unwrapped // { + # browserpass-extension = super.unwrapped.browserpass-extension.override { + # mkYarnModules = args: needsBinfmtOrQemu { + # override = { stdenv }: ( + # (yarn2nix-moretea.override { + # pkgs = pkgs.__splicedPackages // { inherit stdenv; }; + # }).mkYarnModules args + # ).overrideAttrs (upstream: { + # # i guess the VM creates the output directory for the derivation? not sure. + # # and `mv` across the VM boundary breaks, too? + # # original errors: + # # - "mv: cannot create directory <$out>: File exists" + # # - "mv: failed to preserve ownership for" + # buildPhase = lib.replaceStrings + # [ + # "mkdir $out" + # "mv " + # ] + # [ + # "mkdir $out || true ; chmod +w deps/browserpass-extension-modules/package.json" + # "cp -Rv " + # ] + # upstream.buildPhase + # ; + # }); + # }; + # }; + # }; + # }); # flare-signal = prev.flare-signal.override { # # fixes "cargo:warning=aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-m64’" @@ -2314,17 +2314,17 @@ in with final; { wob = mvToBuildInputs [ cmocka ] prev.wob; - wrapFirefox = prev.wrapFirefox.override { - buildPackages = buildPackages // { - # fixes "extract-binary-wrapper-cmd: line 2: strings: command not found" - # ^- in the `nix log` output of cross-compiled `firefox` (it's non-fatal) - makeBinaryWrapper = bpkgs.makeBinaryWrapper.overrideAttrs (upstream: { - passthru.extractCmd = bpkgs.writeShellScript "extract-binary-wrapper-cmd" '' - ${stdenv.cc.targetPrefix}strings -dw "$1" | sed -n '/^makeCWrapper/,/^$/ p' - ''; - }); - }; - }; + # wrapFirefox = prev.wrapFirefox.override { + # buildPackages = buildPackages // { + # # fixes "extract-binary-wrapper-cmd: line 2: strings: command not found" + # # ^- in the `nix log` output of cross-compiled `firefox` (it's non-fatal) + # makeBinaryWrapper = bpkgs.makeBinaryWrapper.overrideAttrs (upstream: { + # passthru.extractCmd = bpkgs.writeShellScript "extract-binary-wrapper-cmd" '' + # ${stdenv.cc.targetPrefix}strings -dw "$1" | sed -n '/^makeCWrapper/,/^$/ p' + # ''; + # }); + # }; + # }; wrapNeovimUnstable = neovim: config: (prev.wrapNeovimUnstable neovim config).overrideAttrs (upstream: { # nvim wrapper has a sanity check that the plugins will load correctly.