{ description = "TeX project"; inputs = { nixpkgs.url = "github:nixos/nixpkgs"; flake-parts.url = "github:hercules-ci/flake-parts"; tex-shell.url = "git://git.mathematicaster.org/tex-shell"; systems.url = "github:nix-systems/default"; }; outputs = inputs@{ self, flake-parts, ... }: flake-parts.lib.mkFlake { inherit self inputs; } { systems = import inputs.systems; imports = [ inputs.tex-shell.flakeModules.default ]; perSystem = { pkgs, config, ... }: { texShell = { scheme = pkgs.texliveSmall; latexmk.enable = true; }; devShells.default = pkgs.mkShellNoCC { inputsFrom = [ config.texShell.build.devShell ]; }; }; }; }