lab/marp/flake.nix
2025-08-05 08:29:44 +01:00

34 lines
796 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.marp-cli ];
text = ''
marp slides.md --preview --watch
'';
})
];
};
};
};
}