This repository has been archived on 2022-03-27. You can view files and clone it, but cannot push or open issues/pull-requests.
presis/default.nix

55 lines
923 B
Nix
Raw Normal View History

2020-10-11 17:50:17 +02:00
let
2020-12-06 12:29:34 +01:00
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs {};
inherit (import sources.gitignore { inherit (pkgs) lib; }) gitignoreSource;
2020-10-11 17:50:17 +02:00
python = (pkgs.python38.withPackages (ps: with ps; [
CommonMark
jinja2
pyyaml
]));
texlive = pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-medium
appendixnumberbeamer
beamertheme-focus
beamertheme-metropolis
biber
biblatex
2021-02-01 09:33:25 +01:00
csquotes
2020-10-11 17:50:17 +02:00
datetime
2020-10-25 10:11:02 +01:00
datetime2
datetime2-german
2020-10-11 17:50:17 +02:00
enumitem
fmtcount
2020-10-25 10:11:02 +01:00
multirow
2020-10-11 17:50:17 +02:00
pgfopts;
};
in
pkgs.stdenv.mkDerivation {
name = "presis";
nativeBuildInputs = [
python
texlive
];
src = gitignoreSource ./.;
FONTCONFIG_FILE = pkgs.makeFontsConf {
fontDirectories = with pkgs; [
fira
iosevka
];
};
enableParallelBuilding = true;
dontFixup = true;
installPhase = ''
cp -r . $out;
'';
}