zed/nix/modules/packages.nix
Cameron Mcloughlin 6661273a41
agent: Sanboxing on linux (#58355)
Release Notes:

- N/A or Added/Fixed/Improved ...

---------

Co-authored-by: Richard Feldman <oss@rtfeldman.com>
Co-authored-by: Martin Ye <martin@zed.dev>
Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
2026-06-16 12:18:29 +00:00

28 lines
569 B
Nix

{ inputs, ... }:
{
perSystem =
{
pkgs,
lib,
system,
...
}:
let
mkZed = import ../toolchain.nix { inherit inputs; };
zed-editor = mkZed pkgs;
in
{
packages = {
default = zed-editor;
debug = zed-editor.override { profile = "dev"; };
};
}
// lib.optionalAttrs (lib.hasSuffix "linux" system) {
checks = {
a11y-test = import ../tests/a11y.nix {
inherit pkgs inputs;
};
}
// import ../tests/sandboxing { inherit pkgs inputs; };
};
}