Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaptch committed Mar 8, 2024
1 parent af4b964 commit 8c44d79
Show file tree
Hide file tree
Showing 14 changed files with 2,364 additions and 0 deletions.
61 changes: 61 additions & 0 deletions docs/general/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions docs/general/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
description = "Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
with flake-utils.lib; eachSystem allSystems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
lib = pkgs.lib;
tex = pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-full
biber
biblatex
cleveref
dashbox
environ
gentium-tug
ifmtarg
iftex
pbox
scalerel
totpages
xifthen
xstring;
};
in {
packages = {
latex-artifact = pkgs.stdenvNoCC.mkDerivation rec {
name = "latex-artifact";
src = ./src;
buildInputs = [ pkgs.coreutils tex ];
phases = ["unpackPhase" "buildPhase" "installPhase"];
buildPhase = ''
export PATH="${lib.makeBinPath buildInputs}";
mkdir -p .cache/texmf-var
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \
latexmk -interaction=nonstopmode -pdf -pdflatex \
main.tex
'';
installPhase = ''
mkdir -p $out
cp main.pdf $out/
'';
};
};
devShell = pkgs.mkShell {
buildInputs = [
tex
];
};
});
}
Loading

0 comments on commit 8c44d79

Please sign in to comment.