Skip to content

Commit

Permalink
🍰 Change the nimble package installation process from devbox to nimble
Browse files Browse the repository at this point in the history
  • Loading branch information
glassesneo committed Jul 1, 2024
1 parent 546d87e commit 7f5d122
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 57 deletions.
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@

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

export PATH=nimbledeps/bin:$PATH

# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
# for more details
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ nimcache
testresults*
tests/*
!*.nim
.direnv
/direnv
nimbledeps/*
3 changes: 1 addition & 2 deletions devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.11.0/.schema/devbox.schema.json",
"packages": [
"[email protected]",
"[email protected]",
"nimlangserver@latest"
"[email protected]"
],
"shell": {
"init_hook": [
Expand Down
48 changes: 0 additions & 48 deletions devbox.lock
Original file line number Diff line number Diff line change
Expand Up @@ -96,54 +96,6 @@
"store_path": "/nix/store/q5i99p78fhyb2dyw1virds9jjd2f4qh6-nimble-0.14.2"
}
}
},
"nimlangserver@latest": {
"last_modified": "2024-06-12T20:55:33Z",
"resolved": "github:NixOS/nixpkgs/a9858885e197f984d92d7fe64e9fff6b2e488d40#nimlangserver",
"source": "devbox-search",
"version": "1.2.0",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/w6rrpdk2x5cb8vvv5mmj6kaq8cdvcz89-nimlangserver-1.2.0",
"default": true
}
],
"store_path": "/nix/store/w6rrpdk2x5cb8vvv5mmj6kaq8cdvcz89-nimlangserver-1.2.0"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/gwxlq3r583i6f9chki7jqlsvh6djida8-nimlangserver-1.2.0",
"default": true
}
],
"store_path": "/nix/store/gwxlq3r583i6f9chki7jqlsvh6djida8-nimlangserver-1.2.0"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/l7qa4rjla6qkpv2qx2z2hv71scl7qpf8-nimlangserver-1.2.0",
"default": true
}
],
"store_path": "/nix/store/l7qa4rjla6qkpv2qx2z2hv71scl7qpf8-nimlangserver-1.2.0"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/fxm9j420kwi4nfmk86v16kg69djzcyqg-nimlangserver-1.2.0",
"default": true
}
],
"store_path": "/nix/store/fxm9j420kwi4nfmk86v16kg69djzcyqg-nimlangserver-1.2.0"
}
}
}
}
}
1 change: 1 addition & 0 deletions nim.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nimblePath = "nimbledeps/pkgs"
11 changes: 6 additions & 5 deletions oolib.nimble
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Package

version = "0.7.1"
author = "Glasses-Neo"
description = "A nimble package for object-oriented programming"
license = "WTFPL"
srcDir = "src"
version = "0.7.1"
author = "Glasses-Neo"
description = "A nimble package for object-oriented programming"
license = "WTFPL"
srcDir = "src"


# Dependencies

requires "nim >= 2.0.0"
requires "nimlangserver#head"

task tests, "Run all tests":
exec "testament p 'tests/**.nim'"
Expand Down

0 comments on commit 7f5d122

Please sign in to comment.