nixos-config/docs/shell.nix

29 lines
477 B
Nix
Raw Normal View History

2023-07-08 11:41:30 +00:00
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
asciidoctorWrapper = writeShellScriptBin "asciidoctor" ''
2023-07-09 06:08:26 +00:00
${lib.getBin gems}/bin/asciidoctor -T ${./assets/templates/asciidoctor} $@
'';
2023-07-08 11:41:30 +00:00
gems = bundlerEnv {
name = "nixos-config-project-docs";
ruby = ruby_3_1;
gemdir = ./.;
};
in
mkShell {
packages = [
2023-07-09 06:08:26 +00:00
asciidoctorWrapper
2023-07-08 11:41:30 +00:00
gems
gems.wrappedRuby
bundix
hugo
go
nodePackages.prettier
vscode-langservers-extracted
];
}