diff --git a/README.md b/README.md index d0d9273..dfd9bcf 100644 --- a/README.md +++ b/README.md @@ -15,3 +15,4 @@ The available ones are: * `leptos`: everything in `rust`, plus wasm target, cargo-leptos, leptosfmt, stylance, sass and binaryen. * `nix`: for nix-only projects, including nil, nixfmt, statix and deadnix. +* `latex`: quite empty for now diff --git a/flake.nix b/flake.nix index 763e29e..cb21b67 100644 --- a/flake.nix +++ b/flake.nix @@ -43,6 +43,11 @@ path = ./nix; description = "Nix-only (or mostly) projects with nil, nixfmt and statix"; }; + + latex = { + path = ./latex; + description = "For quickly authoring latex docs"; + }; }; } // utils.lib.eachDefaultSystem ( diff --git a/latex/flake.nix b/latex/flake.nix new file mode 100644 index 0000000..38a93ad --- /dev/null +++ b/latex/flake.nix @@ -0,0 +1,23 @@ +{ + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + systems.url = "github:nix-systems/x86_64-linux"; + utils = { + url = "github:numtide/flake-utils"; + inputs.systems.follows = "systems"; + }; + }; + + outputs = { nixpkgs, utils }: + utils.lib.eachDefaultSystem(system: + let + pkgs = import nixpkgs { inherit system; }; + in { + + devShell = with pkgs; mkShell { + buildInputs = [texlive.combined.scheme-full]; + }; + }); +} +