# Add Nix/NixOS dev-shell \(\#13407\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5e1c6908887e5172f4cf3724ee2d058fa48f30aa)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5e1c6908887e5172f4cf3724ee2d058fa48f30aa

Requested commit: 5e1c6908887e5172f4cf3724ee2d058fa48f30aa

Commit: 5e1c6908887e5172f4cf3724ee2d058fa48f30aa

Tree: 16f3675b13466b8befc2b95b65e412bcd853a013

Author: killian

Committer: GitHub

## Message

```
Add Nix/NixOS dev-shell (#13407)

This PR adds a Nix/NixOS development-shell (`shell.nix`), which is based
on the upstream
[nixpkgs](https://github.com/NixOS/nixpkgs/blob/c5d4d458115263ec3ee0efd974e6aeb2f787a0ed/pkgs/by-name/ze/zed-editor/package.nix),
as well as its corresponding `flake.nix` file.

To use it, run either the `nix-shell` command (uses the `shell.nix`
file), or the newer but experimental `nix develop` command (uses
`flake.nix`)

~~This has not been tested on macOS, tho preliminary code is there to
try and support it, feel free to report any issues.~~ Zed unfortunately
doesn't build on nix-darwin (see
https://github.com/NixOS/nixpkgs/issues/320084), so this PR doesn't aim
to add darwin support.

---

Release Notes:

- N/A

---------

Signed-off-by: xtrm <oss@xtrm.me>
Co-authored-by: Niklas Korz <niklas@niklaskorz.de>
```

## Parents

- [034d905435ea357e0ff847b0f8e1140dfb7aba38](https://git.cafe/gitcafe/zed/commit/034d905435ea357e0ff847b0f8e1140dfb7aba38?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5e1c6908887e5172f4cf3724ee2d058fa48f30aa?format=markdown)
