lab/asciidoc/flake.nix
2025-08-05 07:54:36 +01:00

36 lines
810 B
Nix

{
inputs = {
devshell.inputs.nixpkgs.follows = "nixpkgs";
devshell.url = "github:numtide/devshell";
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
imports = [ inputs.devshell.flakeModule ];
perSystem =
{ pkgs, ... }:
{
devshells.default = {
packages = [
(pkgs.writeShellApplication {
name = "build";
runtimeInputs = [ pkgs.asciidoctor-with-extensions ];
text = ''
asciidoctor-pdf test.adoc
'';
})
];
};
};
};
}