-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary We can bring back the `shell.nix` file to ensure older .envrc files work. ## How was it tested? did `devbox shell` and saw that `.devbox/gen/shell.nix` exists. ``` ❯ cat .devbox/gen/shell.nix let pkgs = import (fetchTarball { url = "https://github.com/nixos/nixpkgs/archive/3364b5b117f65fe1ce65a3cdd5612a078a3b31e3.tar.gz"; }) { }; in with pkgs; mkShell { packages = [ go_1_20 golangci-lint actionlint ]; } ```
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
let | ||
pkgs = import | ||
(fetchTarball { | ||
url = "{{ .NixpkgsInfo.URL }}"; | ||
{{- if .NixpkgsInfo.Sha256 }} | ||
sha256 = "{{ .NixpkgsInfo.Sha256 }}"; | ||
{{- end }} | ||
}) | ||
{ }; | ||
{{- range .Definitions}} | ||
{{.}} | ||
{{ end }} | ||
in | ||
with pkgs; | ||
mkShell { | ||
packages = [ | ||
{{- range .DevPackages}} | ||
{{.}} | ||
{{- end }} | ||
]; | ||
} |