mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
- flake.nix, infra/nixos/: NixOS VM with Mesa, virtio-gpu, Wayland, systemd user services for compositor and session supervisor - infra/vm/: QEMU build and run scripts - .github/workflows/ci.yml: add Linux job to type-check weft-servo-shell and weft-app-shell with --features servo-embed - docs/architecture.md, docs/security.md, docs/building.md: replace stale pre-implementation design documents - README.md: rewrite to reflect current codebase - crates/weft-servo-shell/SERVO_PIN.md: update implementation status and add SpiderMonkey process boundary statement
61 lines
1.6 KiB
Nix
61 lines
1.6 KiB
Nix
{
|
|
description = "WEFT OS — capability-secure Wayland compositor and app runtime";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
let
|
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
|
|
in
|
|
flake-utils.lib.eachSystem supportedSystems (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
weftPkgs = pkgs.callPackage ./infra/nixos/weft-packages.nix { };
|
|
in
|
|
{
|
|
packages = weftPkgs // {
|
|
default = weftPkgs.weft-appd;
|
|
};
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
name = "weft-dev";
|
|
nativeBuildInputs = with pkgs; [
|
|
rustup
|
|
pkg-config
|
|
cmake
|
|
clang
|
|
python3
|
|
];
|
|
buildInputs = with pkgs; [
|
|
openssl
|
|
libdrm
|
|
mesa
|
|
wayland
|
|
wayland-protocols
|
|
libxkbcommon
|
|
libseat
|
|
udev
|
|
dbus
|
|
libGL
|
|
];
|
|
shellHook = ''
|
|
export LIBCLANG_PATH="${pkgs.libclang.lib}/lib"
|
|
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath [
|
|
pkgs.mesa pkgs.wayland pkgs.libxkbcommon pkgs.libdrm
|
|
]}:$LD_LIBRARY_PATH"
|
|
'';
|
|
};
|
|
}
|
|
) // {
|
|
nixosConfigurations.weft-vm = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit self; };
|
|
modules = [
|
|
./infra/nixos/configuration.nix
|
|
];
|
|
};
|
|
};
|
|
}
|