GitCafeDocsSign in
  1. gitcafe
  2. /
  3. zed
CodeIssuesPullsCIStacksSearchBranchesTags
  1. flake.nix
Commits

Files

.cargo
.cargo
…
.cloudflare
.cloudflare
…
.config
.config
…
.github
.github
…
.zed
.zed
…
assets
assets
…
crates
crates
…
docs
docs
…
extensions
extensions
…
script
script
…
tooling
tooling
…
.dockerignore
.dockerignore
…
.git-blame-ignore-revs
.git-blame-ignore-revs
…
.gitattributes
.gitattributes
…
.gitignore
.gitignore
…
.mailmap
.mailmap
…
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
…
CONTRIBUTING.md
CONTRIBUTING.md
…
Cargo.lock
Cargo.lock
…
Cargo.toml
Cargo.toml
…
Dockerfile
Dockerfile
…
LICENSE-AGPL
LICENSE-AGPL
…
LICENSE-APACHE
LICENSE-APACHE
…
LICENSE-GPL
LICENSE-GPL
…
Procfile
Procfile
…
README.md
README.md
…
compose.yml
compose.yml
…
debug.plist
debug.plist
…
docker-compose.sql
docker-compose.sql
…
flake.lock
flake.lock
…
flake.nix
flake.nix
…
livekit.yaml
livekit.yaml
…
rust-toolchain.toml
rust-toolchain.toml
…
shell.nix
shell.nix
…
typos.toml
typos.toml
…

flake.nix

{
  description = "High-performance, multiplayer code editor from the creators of Atom and Tree-sitter";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
  };

  outputs =
    { self, nixpkgs }:
    let
      inherit (self) outputs;
      systems = [
        "aarch64-linux"
        "x86_64-linux"
        "aarch64-darwin"
        "x86_64-darwin"
      ];
      forAllSystems = nixpkgs.lib.genAttrs systems;
    in
    {
      devShells = forAllSystems (
        system:
        let
          pkgs = import nixpkgs { inherit system; };
        in
        {
          default = import ./shell.nix { inherit pkgs; };
        }
      );
    };
}