From 9078d10277706c057b6b42854a88b05f27d181c0 Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Thu, 12 Mar 2026 21:47:45 +0100 Subject: [PATCH] build(nix): build servo-shell/app-shell as stubs in Nix VM image servo WebIDL Python codegen is incompatible with Nix hermetic sandbox. Build weft-servo-shell and weft-app-shell without servo-embed feature so the VM infrastructure compiles cleanly. The full servo-embed build is performed separately via cargo on a Linux host. --- infra/nixos/weft-packages.nix | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/infra/nixos/weft-packages.nix b/infra/nixos/weft-packages.nix index b4a0827..f668007 100644 --- a/infra/nixos/weft-packages.nix +++ b/infra/nixos/weft-packages.nix @@ -43,30 +43,10 @@ in { weft-servo-shell = mkWeftPkg { pname = "weft-servo-shell"; - extraBuildInputs = with pkgs; [ - mesa wayland libxkbcommon openssl dbus udev libGL fontconfig - ]; - extraNativeBuildInputs = with pkgs; [ - pkgs.llvmPackages.clang pkgs.llvmPackages.llvm cmake python3 nasm - ]; - cargoFlags = [ "--features" "servo-embed" ]; - extraEnv = { - LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib"; - }; }; weft-app-shell = mkWeftPkg { pname = "weft-app-shell"; - extraBuildInputs = with pkgs; [ - mesa wayland libxkbcommon openssl dbus udev libGL fontconfig - ]; - extraNativeBuildInputs = with pkgs; [ - pkgs.llvmPackages.clang pkgs.llvmPackages.llvm cmake python3 nasm - ]; - cargoFlags = [ "--features" "servo-embed" ]; - extraEnv = { - LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib"; - }; }; weft-appd = mkWeftPkg {