Skip to content

Commit 490a657

Browse files
authored
Update examples to use Versioned Packages (#1066)
## Summary This PR updates the example projects in the Examples Repo to use Versioned packages ## How was it tested? Tested manually, and with Testscripts
1 parent b926a8c commit 490a657

File tree

78 files changed

+549
-198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+549
-198
lines changed

examples/databases/mariadb/devbox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
"nixpkgs": {
2020
"commit": "f80ac848e3d6f0c12c52758c0f25c10c97ca3b62"
2121
}
22-
}
22+
}

examples/databases/mariadb/devbox.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
},
77
"mariadb@latest": {
88
"last_modified": "2023-05-01T16:53:22Z",
9+
"plugin_version": "0.0.1",
910
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#mariadb",
1011
"version": "10.6.12"
1112
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"dotnet-sdk@latest": {
5+
"last_modified": "2023-05-01T16:53:22Z",
6+
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#dotnet-sdk",
7+
"version": "6.0.408"
8+
}
9+
}
10+
}

examples/development/elixir/elixir_hello/devbox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": [
3-
"elixir"
3+
"elixir@latest"
44
],
55
"env": {
66
"MIX_HOME": "$PWD/.nix-mix",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"elixir@latest": {
5+
"last_modified": "2023-05-01T16:53:22Z",
6+
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#elixir",
7+
"version": "1.14.4"
8+
}
9+
}
10+
}

examples/development/fsharp/hello-world/devbox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": [
3-
"dotnet-sdk"
3+
"dotnet-sdk@latest"
44
],
55
"shell": {
66
"init_hook": null,
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"dotnet-sdk@latest": {
5+
"last_modified": "2023-05-01T16:53:22Z",
6+
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#dotnet-sdk",
7+
"version": "6.0.408"
8+
}
9+
}
10+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Automatically sets up your devbox environment whenever you cd into this
2+
# directory via our direnv integration:
3+
4+
eval "$(devbox generate direnv --print-envrc)"
5+
6+
# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
7+
# for more details

examples/development/go/hello-world/devbox.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"packages": [
3-
"go_1_19"
3+
"go@1.19.8"
44
],
55
"shell": {
6-
"init_hook": null,
6+
"init_hook": [
7+
"export \"GOROOT=$(go env GOROOT)\""
8+
],
79
"scripts": {
810
"run_test": "go run main.go"
911
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"go@1.19.8": {
5+
"last_modified": "2023-05-01T16:53:22Z",
6+
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#go_1_19",
7+
"version": "1.19.8"
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)