# nix: Resolve 'hostPlatform' rename warning in dev shell \(\#45045\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 83de583fb1f8f0b6f1670494eec697171cf6f335

Requested commit: 83de583fb1f8f0b6f1670494eec697171cf6f335

Commit: 83de583fb1f8f0b6f1670494eec697171cf6f335

Tree: 199b570aaeea484ee126343a5a8fec8fe74f7f93

Author: AidanV

Committer: GitHub

## Message

````
nix: Resolve 'hostPlatform' rename warning in dev shell (#45045)

This PR fixes the warning from entering the nix development shell:
```
evaluation warning: 'hostPlatform' has been renamed to/replaced by 'stdenv.hostPlatform'
```

Decided to go with `zed-editor = mkZed pkgs;` instead of `zed-editor =
packages.${pkgs.stdenv.hostPlatform.system}.default;`, because it is
simpler and with my understanding it is logically equivalent (i.e. we
are getting `packages.<system>.default` which we can see in the
definition of packages is equal to `mkZed pkgs;`).

Release Notes:

- N/A
````

## Parents

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

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