flakes/pandoc/flake.nix

34 lines
836 B
Nix
Raw Normal View History

2023-06-14 17:41:41 +02:00
{
description = "Pandoc flake";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils}:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
pandoc
texlive.combined.scheme-full
];
shellHook = ''
pandoc \
-s \
-o output.pdf \
-f markdown+smart+header_attributes+yaml_metadata_block+auto_identifiers+implicit_figures \
--pdf-engine lualatex \
--dpi=300 \
header.yaml \
input.md
'';
};
}
);
}