@@ -0,0 +1,55 @@
1+{ mkDerivation, aeson, aeson-pretty, attoparsec, base
2+, base64-bytestring, binary, blaze-html, blaze-markup, bytestring
3+, case-insensitive, citeproc, commonmark, commonmark-extensions
4+, commonmark-pandoc, connection, containers, criterion
5+, data-default, deepseq, Diff, directory, doclayout, doctemplates
6+, emojis, exceptions, executable-path, file-embed, filepath, Glob
7+, haddock-library, hslua, hslua-module-system, hslua-module-text
8+, HsYAML, HTTP, http-client, http-client-tls, http-types, ipynb
9+, jira-wiki-markup, JuicyPixels, mtl, network, network-uri
10+, pandoc-types, parsec, process, QuickCheck, random, safe
11+, scientific, SHA, skylighting, skylighting-core, split, stdenv
12+, syb, tagsoup, tasty, tasty-golden, tasty-hunit, tasty-lua
13+, tasty-quickcheck, temporary, texmath, text, text-conversions
14+, time, unicode-transforms, unix, unordered-containers, weigh, xml
15+, zip-archive, zlib
16+}:
17+mkDerivation {
18+ pname = "pandoc";
19+ version = "2.11.4";
20+ src = ./.;
21+ configureFlags = [ "-fhttps" "-f-trypandoc" ];
22+ isLibrary = true;
23+ isExecutable = true;
24+ enableSeparateDataOutput = true;
25+ libraryHaskellDepends = [
26+ aeson aeson-pretty attoparsec base base64-bytestring binary
27+ blaze-html blaze-markup bytestring case-insensitive citeproc
28+ commonmark commonmark-extensions commonmark-pandoc connection
29+ containers data-default deepseq directory doclayout doctemplates
30+ emojis exceptions file-embed filepath Glob haddock-library hslua
31+ hslua-module-system hslua-module-text HsYAML HTTP http-client
32+ http-client-tls http-types ipynb jira-wiki-markup JuicyPixels mtl
33+ network network-uri pandoc-types parsec process random safe
34+ scientific SHA skylighting skylighting-core split syb tagsoup
35+ temporary texmath text text-conversions time unicode-transforms
36+ unix unordered-containers xml zip-archive zlib
37+ ];
38+ executableHaskellDepends = [ base ];
39+ testHaskellDepends = [
40+ base base64-bytestring bytestring containers Diff directory
41+ doctemplates exceptions executable-path filepath Glob hslua mtl
42+ pandoc-types process QuickCheck tasty tasty-golden tasty-hunit
43+ tasty-lua tasty-quickcheck temporary text time xml zip-archive
44+ ];
45+ benchmarkHaskellDepends = [
46+ base bytestring containers criterion mtl text time weigh
47+ ];
48+ postInstall = ''
49+ mkdir -p $out/share/man/man1
50+ mv "man/"*.1 $out/share/man/man1/
51+ '';
52+ homepage = "https://pandoc.org";
53+ description = "Conversion between markup formats";
54+ license = stdenv.lib.licenses.gpl2Plus;
55+}