{ #https://nix.dev/guides/recipes/python-environment.html description = "Python development environment"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nixpkgs-python.url = "github:cachix/nixpkgs-python"; }; outputs = { self, nixpkgs, nixpkgs-python }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; texPkgs = with pkgs.texlive; { inherit (pkgs.texlive) scheme-medium latexmk xetex charter soul microtype geometry titlesec enumitem tex-gyre fancyhdr; }; in { devShells.${system}.default = pkgs.mkShell { buildInputs = [(pkgs.texlive.combine texPkgs)]; }; }; }