61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{
|
|
description = "A very basic flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, flake-utils, nixpkgs }: flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
rec {
|
|
packages.seminararbeit =
|
|
let
|
|
texlive = pkgs.texlive.combine {
|
|
inherit (pkgs.texlive) scheme-small
|
|
biber
|
|
biblatex
|
|
csquotes
|
|
datetime2
|
|
datetime2-german
|
|
enumitem
|
|
geschichtsfrkl
|
|
latexmk
|
|
lipsum
|
|
multirow
|
|
setspace
|
|
todonotes
|
|
tracklang;
|
|
};
|
|
in
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "seminararbeit";
|
|
|
|
nativeBuildInputs = [
|
|
texlive
|
|
];
|
|
|
|
src = self;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# We only build a PDF
|
|
dontFixup = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
|
|
cp seminararbeit.pdf presi/handout.pdf $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
};
|
|
|
|
defaultPackage = packages.seminararbeit;
|
|
});
|
|
}
|