asciidoctor-foodogsquared-e.../shell.nix

34 lines
483 B
Nix
Raw Normal View History

{ pkgs ? import <nixpkgs> { }
, ruby-nix
, extraPackages ? [ ]
, extraBuildInputs ? [ ]
}:
2023-07-07 04:11:42 +00:00
with pkgs;
let
gems = ruby-nix.lib pkgs {
2023-07-07 04:11:42 +00:00
name = "asciidoctor-foodogsquared-extensions";
ruby = ruby_3_1;
gemset = ./gemset.nix;
2023-07-07 04:11:42 +00:00
};
in
mkShell {
buildInputs = [
gems.env
gems.ruby
pkg-config
zlib
libiconv
libgit2
] ++ extraBuildInputs;
2023-07-07 04:11:42 +00:00
packages = [
# Formatters
nixpkgs-fmt
# Language servers
rnix-lsp
] ++ extraPackages;
2023-07-07 04:11:42 +00:00
}