Skip to content

Instantly share code, notes, and snippets.

@otobrglez
Created October 4, 2023 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otobrglez/1b24a44452d4c379c048e63793539832 to your computer and use it in GitHub Desktop.
Save otobrglez/1b24a44452d4c379c048e63793539832 to your computer and use it in GitHub Desktop.
Simple Ruby env
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