works
This commit is contained in:
21
flake.nix
21
flake.nix
@@ -47,6 +47,8 @@
|
||||
titlesec
|
||||
transparent
|
||||
upquote
|
||||
tocloft
|
||||
makecell
|
||||
]))
|
||||
];
|
||||
in {
|
||||
@@ -55,7 +57,7 @@
|
||||
# system.
|
||||
packages = with pkgs; {
|
||||
default = stdenvNoCC.mkDerivation rec {
|
||||
name = "insert-project-name";
|
||||
name = "seriousgames-seminar";
|
||||
version = "1.0.0";
|
||||
src = ./.;
|
||||
buildInputs = latexPackages;
|
||||
@@ -64,17 +66,22 @@
|
||||
''
|
||||
cd .
|
||||
|
||||
latexmk \
|
||||
-pdf \
|
||||
-l -dir-report -file-line-error -verbose \
|
||||
-interaction=nonstopmode \
|
||||
"${name}.tex"
|
||||
build() {
|
||||
latexmk \
|
||||
-pdf \
|
||||
-l -dir-report -file-line-error -verbose \
|
||||
-interaction=nonstopmode \
|
||||
"main.tex"
|
||||
}
|
||||
|
||||
build || true
|
||||
build
|
||||
'';
|
||||
installPhase =
|
||||
# sh
|
||||
''
|
||||
mkdir -p $out/share $out/log $out/artifacts
|
||||
cp out/${name}.pdf "$out/share/${name}"
|
||||
cp out/main.pdf "$out/share/seriousgames-telemetry.pdf"
|
||||
cp out/*.log $out/log/
|
||||
cp -r out/* $out/artifacts
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user