add dnd-5e-latex-template
This commit is contained in:
parent
4b92960a41
commit
e3bd123d94
6 changed files with 105 additions and 80 deletions
28
nixos/pkgs/dnd-5e-latex-template/default.nix
Normal file
28
nixos/pkgs/dnd-5e-latex-template/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib, stdenvNoCC, fetchFromGitHub }: stdenvNoCC.mkDerivation rec {
|
||||
pname = "dnd-5e-latex-template";
|
||||
version = "0.8.0";
|
||||
tlType = "run";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rpgtex";
|
||||
repo = "DND-5e-LaTeX-Template";
|
||||
rev = "d611f61d2d0f54e621641cffe87b49ca216ccf1a";
|
||||
sha256 = "sha256-jSYC0iduKGoUaYI1jrH0cakC45AMug9UodERqsvwVxw=";
|
||||
};
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
path="$out/tex/latex/${pname}"
|
||||
mkdir -p "$path"
|
||||
cp -r $src/* $path
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "DnD 5e latex template";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue