Created
February 8, 2026 20:12
-
-
Save Set27/9a59b5df81f6bb15d989f55f64d38901 to your computer and use it in GitHub Desktop.
Ruby 2.6.3 devenv
This file contains hidden or 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
| #!/usr/bin/env bash | |
| export DIRENV_WARN_TIMEOUT=20s | |
| export NIXPKGS_ALLOW_INSECURE=1 | |
| eval "$(devenv direnvrc)" | |
| # `use devenv` supports the same options as the `devenv shell` command. | |
| # | |
| # To silence all output, use `--quiet`. | |
| # | |
| # Example usage: use devenv --quiet --impure --option services.postgres.enable:bool true | |
| use devenv --impure |
This file contains hidden or 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
| { pkgs, lib, config, inputs, ... }: | |
| { | |
| # https://devenv.sh/basics/ | |
| env.GREET = "devenv"; | |
| # https://devenv.sh/packages/ | |
| packages = with pkgs; [ | |
| git | |
| libyaml | |
| ]; | |
| env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types"; | |
| languages.ruby = { | |
| enable = true; | |
| version = "2.6.3"; | |
| bundler.enable = true; | |
| # listen_addresses = "localhost"; | |
| }; | |
| # https://devenv.sh/basics/ | |
| enterShell = '' | |
| ruby --version | |
| ''; | |
| } |
This file contains hidden or 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
| inputs: | |
| nixpkgs: | |
| url: github:cachix/devenv-nixpkgs/rolling | |
| nixpkgs-ruby: | |
| url: github:bobvanderlinden/nixpkgs-ruby | |
| inputs: | |
| nixpkgs: | |
| follows: nixpkgs | |
| # If you're willing to use a package that's vulnerable | |
| permittedInsecurePackages: | |
| - "openssl-1.1.1w" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error log