nixos-config/templates/local-ruby-nix/shell.nix

26 lines
325 B
Nix
Raw Normal View History

2023-08-03 07:44:11 +00:00
{ pkgs ? import <nixpkgs> { }, ruby-nix }:
with pkgs;
let
gems = ruby-nix.lib pkgs {
name = "ruby-nix-env";
ruby = ruby_3_1;
gemset = ./gemset.nix;
};
in
mkShell {
buildInputs = [
gems.env
gems.ruby
];
packages = [
# Formatters
nixpkgs-fmt
# Language servers
rnix-lsp
];
}