mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-26 17:03: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
67 lines
1.5 KiB
Nix
67 lines
1.5 KiB
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
src = ../..;
|
|
|
|
cargoLock = {
|
|
lockFile = ../../Cargo.lock;
|
|
outputHashes = {
|
|
"servo-0.0.1" = pkgs.lib.fakeSha256;
|
|
};
|
|
};
|
|
|
|
commonArgs = {
|
|
inherit src cargoLock;
|
|
version = "0.1.0";
|
|
nativeBuildInputs = with pkgs; [ pkg-config ];
|
|
};
|
|
|
|
mkWeftPkg = { pname, extraBuildInputs ? [], extraNativeBuildInputs ? [], cargoFlags ? [] }: pkgs.rustPlatform.buildRustPackage (commonArgs // {
|
|
inherit pname;
|
|
cargoBuildFlags = [ "--package" pname ] ++ cargoFlags;
|
|
cargoTestFlags = [ "--package" pname ];
|
|
buildInputs = extraBuildInputs;
|
|
nativeBuildInputs = commonArgs.nativeBuildInputs ++ extraNativeBuildInputs;
|
|
doCheck = true;
|
|
});
|
|
|
|
in {
|
|
weft-compositor = mkWeftPkg {
|
|
pname = "weft-compositor";
|
|
extraBuildInputs = with pkgs; [
|
|
libdrm
|
|
mesa
|
|
wayland
|
|
libxkbcommon
|
|
libseat
|
|
udev
|
|
dbus
|
|
libGL
|
|
];
|
|
extraNativeBuildInputs = with pkgs; [ wayland-scanner ];
|
|
};
|
|
|
|
weft-appd = mkWeftPkg {
|
|
pname = "weft-appd";
|
|
extraBuildInputs = with pkgs; [ openssl ];
|
|
};
|
|
|
|
weft-runtime = mkWeftPkg {
|
|
pname = "weft-runtime";
|
|
extraBuildInputs = with pkgs; [ openssl ];
|
|
cargoFlags = [ "--features" "wasmtime-runtime,net-fetch" ];
|
|
};
|
|
|
|
weft-pack = mkWeftPkg {
|
|
pname = "weft-pack";
|
|
};
|
|
|
|
weft-file-portal = mkWeftPkg {
|
|
pname = "weft-file-portal";
|
|
};
|
|
|
|
weft-mount-helper = mkWeftPkg {
|
|
pname = "weft-mount-helper";
|
|
extraBuildInputs = with pkgs; [ cryptsetup ];
|
|
};
|
|
}
|