2023-07-08 11:41:30 +00:00
|
|
|
{ pkgs ? import <nixpkgs> { } }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
let
|
2023-07-09 05:18:13 +00:00
|
|
|
asciidoctorWrapper = writeShellScriptBin "asciidoctor" ''
|
2023-07-09 06:08:26 +00:00
|
|
|
${lib.getBin gems}/bin/asciidoctor -T ${./assets/templates/asciidoctor} $@
|
2023-07-09 05:18:13 +00:00
|
|
|
'';
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
}
|