-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.nix
59 lines (51 loc) · 1.43 KB
/
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
57
58
59
with import <nixpkgs>{};
let TextVimColor = perl538Packages.buildPerlPackage {
pname = "Text-VimColor";
version = "0.29";
src = fetchurl {
url = "mirror://cpan/authors/id/R/RW/RWSTAUNER/Text-VimColor-0.29.tar.gz";
sha256 = "e20d3202c888af3d082a2245db5e87ee774e96fcf6708a30530f2eeb1a90988e";
};
buildInputs = [ vim perl538Packages.FileShareDirInstall perl538Packages.TestFileShareDir ];
propagatedBuildInputs = [ perl538Packages.FileShareDir perl538Packages.PathClass ];
meta = {
homepage = "https://github.com/rwstauner/Text-VimColor";
description = "Syntax highlight text using Vim";
license = with lib.licenses; [ artistic1 gpl1Plus ];
};
};
in pkgs.stdenv.mkDerivation rec {
pname = "personal-wiki";
version = "0.1.0";
src = builtins.path { name = "personal-wiki"; path = ./.; };
buildInputs = with pkgs; [
ikiwiki
vim
graphviz
git
tzdata
# teximg
imagemagick
texlive.combined.scheme-basic
ghostscript
discount
perl538
perl538Packages.syntax
perl538Packages.PathClass
perl538Packages.FileShare
perl538Packages.FileShareDir
perl538Packages.TextMultiMarkdown
perl538Packages.SortNaturally
TextVimColor
];
preCheck = ''
export TZDIR=${tzdata}/share/zoneinfo
'';
buildPhase = ''
# Actually build
ikiwiki --gettime --setup ./ikiwiki.setup -v
'';
installPhase = ''
mv www $out
'';
}