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/flake.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

2021-05-06 18:11:08 +02:00
{
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
geschichtsfrkl
latexmk
lipsum
2021-11-01 14:44:15 +01:00
multirow
2021-05-06 18:11:08 +02:00
setspace
2021-10-10 18:03:41 +02:00
todonotes
2021-05-06 18:11:08 +02:00
tracklang;
};
in
pkgs.stdenv.mkDerivation {
name = "seminararbeit.pdf";
nativeBuildInputs = [
texlive
];
src = self;
# We only build a PDF
dontFixup = true;
installPhase = "cp $name $out";
};
defaultPackage = packages.seminararbeit;
});
}