Current Behavior (bug)
ruby 2.6.6
. Here is the devbox.json:{
"packages": [],
"shell": {
"init_hook": null
},
"nixpkgs": {
"commit": "c92ca95afb5043bc6faa0d526460584eccff2277"
}
}
devbox add ruby
. You get this output:devbox add ruby
Error: ruby: package not found
To search for packages use https://search.nixos.org/packages
Expected Behavior (fix)
Instead, ruby should install correctly. Here's the output when using a recent nixpkgs hash:
devbox add ruby
Installing nix packages. This may take a while... done.
This plugin sets the following environment variables:
* RUBY_CONFDIR=/Users/daniel/Code/playground/repro-devbox/.devbox/virtenv/ruby
* GEMRC=/Users/daniel/Code/playground/repro-devbox/.devbox/virtenv/ruby/.gemrc
* GEM_HOME=/Users/daniel/Code/playground/repro-devbox/.devbox/virtenv/ruby
To show this information, run `devbox info ruby`
ruby (ruby-2.7.6) is now installed.
Additional context
devbox version -v
Version: 0.2.2
Platform: darwin_arm64
Commit: c7d47b13f9b749f0ae5c9b29edbbb4be16b6cca6
Commit Time: 2023-01-13T19:04:12Z
Go Version: go1.19.4
FWIW, looks like the ruby
pkg is indeed defined in the nixpkgs repo at that commit, and it's in the same path/location as it is today:
https://github.com/NixOS/nixpkgs/blob/c92ca95afb5043bc6faa0d526460584eccff2277/pkgs/development/interpreters/ruby/default.nix
The working hypothesis is:
legacyPackages.aarch64-darwin
but it does contain legacyPackages.x86_64-darwin
In fact, running nix directly on an M1 returns:
nix search --extra-experimental-features "nix-command flakes" nixpkgs/c92ca95afb5043bc6faa0d526460584eccff2277#ruby
error: no results for the given search term(s)!
On an intel it returns:
❯ nix search --extra-experimental-features "nix-command flakes" nixpkgs/c92ca95afb5043bc6faa0d526460584eccff2277#ruby
* legacyPackages.x86_64-darwin.ruby (2.6.6)
The Ruby language
Owner Name | jetpack-io |
Repo Name | devbox |
Full Name | jetpack-io/devbox |
Language | Go |
Created Date | 2022-08-18 |
Updated Date | 2023-03-31 |
Star Count | 4960 |
Watcher Count | 19 |
Fork Count | 68 |
Issue Count | 42 |
Issue Title | Created Date | Updated Date |
---|