Verified Commit 04fb61a1 authored by Renato Alves's avatar Renato Alves 🌱

For docker

parents
let
pkgs = let
hostPkgs = import <nixpkgs> {};
pinnedPkgs = hostPkgs.fetchFromGitHub {
owner = "unode";
repo = "nixpkgs";
rev = "99b8e28a6a37274a51b65c3ddd35b7a5265a1900";
sha256 = "0p2k2flq34lnv65cvgdlshgvm9ghkyfgkcvx2qyidr7j6vxz8f0c";
};
in import pinnedPkgs {};
tex = pkgs.texlive.combine {
inherit (pkgs.texlive)
scheme-tetex
collection-fontsextra
collection-fontsrecommended
mathspec
xetex
biber
bibtex
xstring
logreq
wrapfig
biblatex
glossaries
# The next 4 are dependencies of glossaries
mfirstuc
xfor
datatool
substr
# For chapters
quotchap
threeparttable
fancyhdr
siunitx
setspace
geometry
hyperref
booktabs
;
};
in
pkgs.buildEnv {
name = "pandocEnv";
paths = with pkgs; [
tex
#texlive.combined.scheme-full
gnumake
pandoc
#poppler_utils
#libreoffice
lua
haskellPackages.pandoc-citeproc
haskellPackages.pandoc-crossref
haskellPackages.pandoc-placetable
#haskellPackages.pandoc-include
python
pythonPackages.pandocfilters
];
}
let
pkgs = let
hostPkgs = import <nixpkgs> {};
pinnedPkgs = hostPkgs.fetchFromGitHub {
owner = "unode";
repo = "nixpkgs";
rev = "99b8e28a6a37274a51b65c3ddd35b7a5265a1900";
sha256 = "0p2k2flq34lnv65cvgdlshgvm9ghkyfgkcvx2qyidr7j6vxz8f0c";
};
in import pinnedPkgs {};
tex = pkgs.texlive.combine {
inherit (pkgs.texlive)
scheme-tetex
collection-fontsextra
collection-fontsrecommended
mathspec
xetex
biber
bibtex
xstring
logreq
wrapfig
biblatex
glossaries
# The next 4 are dependencies of glossaries
mfirstuc
xfor
datatool
substr
# For chapters
quotchap
threeparttable
fancyhdr
siunitx
setspace
geometry
hyperref
booktabs
;
};
in
pkgs.stdenv.mkDerivation {
name = "pandocEnv";
# Force tex-gyre fonts to be seen by fontconfig or else xelatex will fail to find them
FONTCONFIG_FILE = pkgs.makeFontsConf { fontDirectories = pkgs.texlive.tex-gyre.pkgs; };
buildInputs = with pkgs; [
tex
#texlive.combined.scheme-full
gnumake
pandoc
#poppler_utils
#libreoffice
lua
haskellPackages.pandoc-citeproc
haskellPackages.pandoc-crossref
haskellPackages.pandoc-placetable
#haskellPackages.pandoc-include
python
pythonPackages.pandocfilters
];
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment