This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
seminararbeit/default.nix

40 lines
896 B
Nix

let
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/afbf62d179bff8b3191316eab9890255b512bf78.tar.gz") {};
# reproducible source
gitignoreSrc = pkgs.fetchFromGitHub {
owner = "hercules-ci";
repo = "gitignore";
rev = "c4662e662462e7bf3c2a968483478a665d00e717";
sha256 = "sha256:1npnx0h6bd0d7ql93ka7azhj40zgjp815fw2r6smg8ch9p7mzdlx";
};
inherit (import gitignoreSrc { inherit (pkgs) lib; }) gitignoreSource;
texlive = pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-small
biber
biblatex
biblatex-iso690
csquotes
datetime2
datetime2-german
latexmk
lipsum
tracklang;
};
in
pkgs.stdenv.mkDerivation {
name = "seminararbeit.pdf";
nativeBuildInputs = [
texlive
];
src = gitignoreSource ./.;
# We only build a PDF
dontFixup = true;
installPhase = "cp $name $out";
}