Created
October 4, 2023 21:16
-
-
Save otobrglez/1b24a44452d4c379c048e63793539832 to your computer and use it in GitHub Desktop.
Simple Ruby env
This file contains 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
let | |
pkgs = import <nixpkgs> {}; | |
rubyEnv = pkgs.ruby_3_2.withPackages(p: with p; [ | |
pry | |
nokogiri | |
]); | |
in with pkgs; | |
mkShell { | |
name = "kio-rb"; | |
buildInputs = with pkgs; [ | |
rubyEnv | |
bundler | |
libxml2 | |
]; | |
NIX_ENFORCE_PURITY = 0; | |
NIX_SHELL_PRESERVE_PROMPT = 1; | |
shellHook = '' | |
mkdir -p .bundle | |
bundle config set --local path '.bundle' && bundle install | |
''; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment