From 1589910f1319c1806bbfaf47c73a80cbcee8fafb Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 14 May 2026 12:05:10 +0100 Subject: fix(remote-dev): use deadsnakes python3.11 instead of nix for Mason MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nix's python rejects manylinux wheels by design (its libc is patched), which forced pip in Mason's per-pkg venvs to compile nodejs-wheel-binaries (pulled in by basedpyright) from source. That source build then failed on Ubuntu 20.04's gcc 9.4 — Node 24 requires C++20 (g++ >= 12.2.0). Replace the nix python311-versioned-only derivation with an Ubuntu-native python3.11 from the deadsnakes PPA. It satisfies Mason's >=3.10 version requirement, accepts manylinux wheels, and the versioned binary name leaves /usr/bin/python3 untouched (leaf-tools policy preserved). --- remote-dev/home.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'remote-dev/home.nix') diff --git a/remote-dev/home.nix b/remote-dev/home.nix index 4aeff8a..576e6d8 100644 --- a/remote-dev/home.nix +++ b/remote-dev/home.nix @@ -86,16 +86,14 @@ in uv # Mason python LSPs in isolated venvs; brings `uv`/`uvx` only jre # for Mason's groovy-language-server (headless Java runtime) - # Mason's pip-installer probes `python3.13`, `python3.12`, ..., `python3.10` - # in PATH (in addition to `python3`) when picking an interpreter for the - # per-pkg venvs it creates. Ubuntu 20.04 ships only `python3` = 3.8 which - # is too old for codespell/mdformat/yamllint/etc. We expose ONLY the - # versioned `python3.11` binary so we don't shadow the system `python3` - # (preserving the leaf-tools policy: system builds keep using /usr/bin/python3). - (pkgs.runCommand "python311-versioned-only" { } '' - mkdir -p $out/bin - ln -s ${pkgs.python311}/bin/python3.11 $out/bin/python3.11 - '') + # NB: python3.11 for Mason is NOT installed here — see bootstrap.sh. + # Nix's python disables manylinux wheel support by design (its libc is + # patched and doesn't satisfy any manylinux policy), so pip in a + # nix-python venv falls back to source builds for packages like + # `nodejs-wheel-binaries` (pulled in by basedpyright). That source build + # then fails on Ubuntu 20.04's gcc 9.4 (no C++20). Bootstrap installs + # `python3.11` via the deadsnakes PPA instead — Ubuntu-native binary + # with full manylinux wheel acceptance. # Rust toolchain for Mason packages whose only install source is # `cargo install` (shellharden). The host has these via the Arch -- cgit v1.3.1