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.
This commit is contained in:
Marco Allegretti 2026-03-12 21:47:45 +01:00
parent f0c061a054
commit 9078d10277

View file

@ -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 {