From 9bbd788668afd37f5c0f931c7a91a7b0f5f44c19 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 27 Jan 2023 01:33:43 +0100 Subject: [PATCH] flake: format --- flake.nix | 42 +++++++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index d2556ff..021f61e 100644 --- a/flake.nix +++ b/flake.nix @@ -47,7 +47,8 @@ rm -r "$out" ''; - buildLatex = with final; with pkgs; + buildLatex = with final; + with pkgs; stdenv.mkDerivation { inherit pname version; @@ -62,16 +63,8 @@ multirow hyperref blindtext - # fancyhdr - etoolbox topiclongtable - # lstfiracode - - # fontspec - # extrafonts - # recommendedfonts - ; }) gnumake @@ -118,6 +111,22 @@ overlays = [self.overlays.default]; }; + nativeBuildInputs = with pkgs; [ + (texlive.combine { + inherit + (texlive) + scheme-medium + authblk + multirow + hyperref + blindtext + etoolbox + topiclongtable + ; + }) + gnumake + ]; + watcher = pkgs.writeShellScriptBin "watcher" '' out=".latexmkout" mkdir "$out" @@ -136,6 +145,21 @@ echo " -- in ${pname} dev shell..." ''; + nativeBuildInputs = with pkgs; [ + (texlive.combine { + inherit + (texlive) + scheme-full + multirow + hyperref + blindtext + etoolbox + topiclongtable + ; + }) + gnumake + ]; + packages = with nixpkgsFor.${system}; [ watcher