2016-01-07 21:25:17 +00:00
|
|
|
{ pkgs ? (import <nixpkgs> {}) }:
|
|
|
|
|
|
|
|
let
|
|
|
|
env = with pkgs.haskellPackages; [
|
|
|
|
pandoc
|
2016-01-08 10:44:37 +00:00
|
|
|
pandoc-crossref
|
2016-01-07 21:25:17 +00:00
|
|
|
|
|
|
|
(pkgs.texlive.combine {
|
|
|
|
inherit (pkgs.texlive)
|
2016-01-08 12:41:09 +00:00
|
|
|
scheme-basic
|
|
|
|
|
|
|
|
amsfonts
|
|
|
|
amsmath
|
|
|
|
lm
|
|
|
|
ifxetex
|
|
|
|
ifluatex
|
|
|
|
eurosym
|
|
|
|
listings
|
|
|
|
fancyvrb
|
|
|
|
# longtable
|
|
|
|
booktabs
|
|
|
|
|
|
|
|
# no graphics...
|
|
|
|
# graphicx
|
|
|
|
# grffile
|
|
|
|
|
|
|
|
hyperref
|
|
|
|
ulem
|
|
|
|
geometry
|
|
|
|
setspace
|
|
|
|
babel
|
|
|
|
|
|
|
|
# optionals
|
|
|
|
upquote
|
|
|
|
microtype
|
|
|
|
csquotes
|
|
|
|
|
|
|
|
# We have no citation support
|
|
|
|
# natbib
|
|
|
|
# biblatex
|
|
|
|
# bibtex
|
|
|
|
# biber
|
|
|
|
|
|
|
|
# some more, not listed in the pandoc docs
|
|
|
|
mathtools
|
|
|
|
enumitem
|
2016-01-07 21:25:17 +00:00
|
|
|
;
|
|
|
|
})
|
|
|
|
|
|
|
|
pkgs.lmodern
|
|
|
|
];
|
|
|
|
in
|
|
|
|
|
|
|
|
pkgs.stdenv.mkDerivation rec {
|
|
|
|
name = "imag-doc";
|
|
|
|
src = ./.;
|
|
|
|
version = "0.0.0";
|
|
|
|
|
|
|
|
buildInputs = [ env ];
|
|
|
|
|
|
|
|
}
|
|
|
|
|