mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
chore: centralise folders
This commit is contained in:
parent
7d614f784c
commit
34badc91d5
152 changed files with 6292 additions and 6645 deletions
|
|
@ -1,78 +0,0 @@
|
|||
# This template is based on https://github.com/Leixb/latex-template/tree/master
|
||||
{
|
||||
description = "LaTeX Flake";
|
||||
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
{
|
||||
|
||||
lib.latexmk = import ./build-document.nix;
|
||||
|
||||
} // flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pname = "document";
|
||||
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
||||
latex-packages = with pkgs; [
|
||||
(texlive.combine {
|
||||
inherit (texlive)
|
||||
scheme-medium
|
||||
framed
|
||||
titlesec
|
||||
cleveref
|
||||
multirow
|
||||
wrapfig
|
||||
tabu
|
||||
threeparttable
|
||||
threeparttablex
|
||||
makecell
|
||||
environ
|
||||
biblatex
|
||||
biber
|
||||
fvextra
|
||||
upquote
|
||||
catchfile
|
||||
xstring
|
||||
csquotes
|
||||
minted
|
||||
dejavu
|
||||
comment
|
||||
footmisc
|
||||
xltabular
|
||||
ltablex
|
||||
;
|
||||
})
|
||||
which
|
||||
python39Packages.pygments
|
||||
];
|
||||
|
||||
dev-packages = with pkgs; [
|
||||
texlab
|
||||
zathura
|
||||
wmctrl
|
||||
];
|
||||
in
|
||||
rec {
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = [ latex-packages dev-packages ];
|
||||
};
|
||||
|
||||
formatter = pkgs.nixpkgs-fmt;
|
||||
|
||||
packages = flake-utils.lib.flattenTree {
|
||||
default = import ./build-document.nix {
|
||||
inherit pkgs;
|
||||
name = pname;
|
||||
texlive = latex-packages;
|
||||
shellEscape = true;
|
||||
minted = true;
|
||||
SOURCE_DATE_EPOCH = toString self.lastModified;
|
||||
};
|
||||
};
|
||||
|
||||
apps.default = flake-utils.lib.mkApp { drv = "${pkgs.texlivePackages.latexmk}"; exePath = "/bin/latexmk"; };
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue