-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
56 lines (48 loc) · 849 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{ stdenv
, makeWrapper
# , diagrams-builder
, gnumake
, graphviz
, jdk
, jq
, lua5_3
, pandoc
, plantuml
, xdg_utils
, yq
}:
stdenv.mkDerivation rec {
version = "0.0.0";
pname = "pandoc-md-wiki";
name = "${pname}-${version}";
passthru = {
inherit pname;
};
src = ./.;
# TODO: Patch the makefile.
nativeBuildInputs = [
makeWrapper
];
buildInputs = [
# diagrams-builder
gnumake
graphviz
jdk
jq
lua5_3 # For experimenting with pandoc native lua filters.
pandoc
plantuml
xdg_utils
yq
];
installPhase = ''
mkdir -p "$out/share/${pname}"
find . -mindepth 1 -maxdepth 1 -exec mv -t "$out/share/${pname}" {} +
'';
meta = {
description = ''
A simple markdown wiki build tool based on pandoc tailored to
the needs of development teams.
'';
};
}