mirror of
https://github.com/thufschmitt/tix-papers.git
synced 2024-09-11 13:00:34 +03:00
37 lines
858 B
Nix
37 lines
858 B
Nix
{
|
|
nixpkgs ? <nixpkgs>, system ? builtins.currentSystem
|
|
}:
|
|
with import nixpkgs { inherit system; };
|
|
let myTexLive =
|
|
texlive.combine {
|
|
inherit (texlive) scheme-medium syntax todo appendix paralist csvsimple
|
|
biblatex logreq xstring cleveref filehook;
|
|
};
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "rapport-stage";
|
|
version = "2017";
|
|
buildInputs = [
|
|
myTexLive
|
|
pandoc
|
|
biber
|
|
];
|
|
|
|
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ "${myTexLive}/share/texmf/" ]; };
|
|
|
|
src = builtins.filterSource (name: type:
|
|
let baseName = baseNameOf (toString name); in !(
|
|
(type == "directory" &&
|
|
(baseName == ".git" ||
|
|
baseName == "out"))))
|
|
./.;
|
|
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/nix-support
|
|
cp out/main.pdf $out/
|
|
echo "file pdf $out/main.pdf" >> $out/nix-support/hydra-build-products
|
|
'';
|
|
}
|
|
|