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