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
Raw Normal View History

2020-10-03 14:56:13 +02:00
let
2020-10-10 15:08:58 +02:00
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;
2020-10-03 14:56:13 +02:00
texlive = pkgs.texlive.combine {
2020-10-03 15:31:24 +02:00
inherit (pkgs.texlive) scheme-small
2020-10-03 14:56:13 +02:00
biber
biblatex
biblatex-iso690
csquotes
datetime2
datetime2-german
2020-10-03 15:31:24 +02:00
latexmk
lipsum
tracklang;
2020-10-03 14:56:13 +02:00
};
in
pkgs.stdenv.mkDerivation {
name = "seminararbeit.pdf";
nativeBuildInputs = [
texlive
];
2020-10-10 15:08:58 +02:00
src = gitignoreSource ./.;
2020-10-03 14:56:13 +02:00
# We only build a PDF
dontFixup = true;
installPhase = "cp $name $out";
}