Skip to content

Commit

Permalink
Improve dev env with devbox
Browse files Browse the repository at this point in the history
  • Loading branch information
packruler committed Oct 22, 2024
1 parent 094cba5 commit 44e94e1
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Automatically sets up your devbox environment whenever you cd into this
# directory via our direnv integration:

eval "$(devbox generate direnv --print-envrc)"

# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
# for more details
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
// "go.gopath": "/go",
"terminal.integrated.defaultProfile.linux": "zsh"
}
18 changes: 18 additions & 0 deletions devbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.10.7/.schema/devbox.schema.json",
"packages": [
"go@latest",
"gofumpt@latest",
"golangci-lint@latest",
"yaegi@latest"
],
"env": {
"EDITOR": "code -w",
"GIT_EDITOR": "code -w",
"HISTDIR": "$DEVBOX_PROJECT_ROOT/.devbox",
"ZSH_EXTRA_PLUGINS": "golang",

// "GOPATH": "$PWD",
"PATH": "$PATH:$PWD/bin"
}
}
197 changes: 197 additions & 0 deletions devbox.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
{
"lockfile_version": "1",
"packages": {
"go@latest": {
"last_modified": "2024-10-13T23:44:06Z",
"resolved": "github:NixOS/nixpkgs/d4f247e89f6e10120f911e2e2d2254a050d0f732#go",
"source": "devbox-search",
"version": "1.23.2",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/35jikx2wg5r0qj47sic0p99bqnmwi6cn-go-1.23.2",
"default": true
}
],
"store_path": "/nix/store/35jikx2wg5r0qj47sic0p99bqnmwi6cn-go-1.23.2"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/6bx6d90kpy537yab22wja70ibpp4gkww-go-1.23.2",
"default": true
}
],
"store_path": "/nix/store/6bx6d90kpy537yab22wja70ibpp4gkww-go-1.23.2"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/yi89mimkmw48qhzrll1aaibxbvllpsjv-go-1.23.2",
"default": true
}
],
"store_path": "/nix/store/yi89mimkmw48qhzrll1aaibxbvllpsjv-go-1.23.2"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/klw1ipjsqx1np7pkk833x7sad7f3ivv9-go-1.23.2",
"default": true
}
],
"store_path": "/nix/store/klw1ipjsqx1np7pkk833x7sad7f3ivv9-go-1.23.2"
}
}
},
"gofumpt@latest": {
"last_modified": "2024-10-13T23:44:06Z",
"resolved": "github:NixOS/nixpkgs/d4f247e89f6e10120f911e2e2d2254a050d0f732#gofumpt",
"source": "devbox-search",
"version": "0.7.0",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/30h9j0k66vlwjzc5mh2n10zy5f1sagr5-gofumpt-0.7.0",
"default": true
}
],
"store_path": "/nix/store/30h9j0k66vlwjzc5mh2n10zy5f1sagr5-gofumpt-0.7.0"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/4jb1rrn33k2pq04im55l1626qcaaw9ic-gofumpt-0.7.0",
"default": true
}
],
"store_path": "/nix/store/4jb1rrn33k2pq04im55l1626qcaaw9ic-gofumpt-0.7.0"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/plmickwjlqbq2cpf6bs8cmj3vrwkim37-gofumpt-0.7.0",
"default": true
}
],
"store_path": "/nix/store/plmickwjlqbq2cpf6bs8cmj3vrwkim37-gofumpt-0.7.0"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/f6g3r8nzcyzwm2z5fpp6bxhqbflkhgn5-gofumpt-0.7.0",
"default": true
}
],
"store_path": "/nix/store/f6g3r8nzcyzwm2z5fpp6bxhqbflkhgn5-gofumpt-0.7.0"
}
}
},
"golangci-lint@latest": {
"last_modified": "2024-10-13T23:44:06Z",
"resolved": "github:NixOS/nixpkgs/d4f247e89f6e10120f911e2e2d2254a050d0f732#golangci-lint",
"source": "devbox-search",
"version": "1.61.0",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/8fx25j98hqdblwzf7wbx8dijjc4smjrs-golangci-lint-1.61.0",
"default": true
}
],
"store_path": "/nix/store/8fx25j98hqdblwzf7wbx8dijjc4smjrs-golangci-lint-1.61.0"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/pqv50bg81jx4h5qavk48pgw4kvvyjnmk-golangci-lint-1.61.0",
"default": true
}
],
"store_path": "/nix/store/pqv50bg81jx4h5qavk48pgw4kvvyjnmk-golangci-lint-1.61.0"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/7p5pn20a06xgm1816xdz6ik6bjr5klip-golangci-lint-1.61.0",
"default": true
}
],
"store_path": "/nix/store/7p5pn20a06xgm1816xdz6ik6bjr5klip-golangci-lint-1.61.0"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/62cj9b5izk9z682r7vcjwx3gqdgrdqfm-golangci-lint-1.61.0",
"default": true
}
],
"store_path": "/nix/store/62cj9b5izk9z682r7vcjwx3gqdgrdqfm-golangci-lint-1.61.0"
}
}
},
"yaegi@latest": {
"last_modified": "2024-10-13T23:44:06Z",
"resolved": "github:NixOS/nixpkgs/d4f247e89f6e10120f911e2e2d2254a050d0f732#yaegi",
"source": "devbox-search",
"version": "0.16.1",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/f0srj5b9h4c2nwn81yflqpz4q4lbi2gf-yaegi-0.16.1",
"default": true
}
],
"store_path": "/nix/store/f0srj5b9h4c2nwn81yflqpz4q4lbi2gf-yaegi-0.16.1"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/zsykpnb242v5mc5xbkhyks5jc6y8r6z4-yaegi-0.16.1",
"default": true
}
],
"store_path": "/nix/store/zsykpnb242v5mc5xbkhyks5jc6y8r6z4-yaegi-0.16.1"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/gfqnjgzwpq4kab5zpj4dzx8h25zk9l1j-yaegi-0.16.1",
"default": true
}
],
"store_path": "/nix/store/gfqnjgzwpq4kab5zpj4dzx8h25zk9l1j-yaegi-0.16.1"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/smf7666lap1kfp07qrkvcr4ziyb4klq3-yaegi-0.16.1",
"default": true
}
],
"store_path": "/nix/store/smf7666lap1kfp07qrkvcr4ziyb4klq3-yaegi-0.16.1"
}
}
}
}
}

0 comments on commit 44e94e1

Please sign in to comment.