-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
45 lines (36 loc) · 1.28 KB
/
shell.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
{ usePinnedNixpkgs ? true, compiler ? "default" }:
let
sandboxPkgs = (import ./nix/sandbox-pkgs.nix) { inherit usePinnedNixpkgs; };
inherit (sandboxPkgs) pkgs;
f = { mkDerivation, base, bytestring, directory
, filepath, filestore, hslogger, mtl, network, network-uri
, pandoc, pandoc-types, process, SHA, stdenv, utf8-string
, process-streaming, pipes-transduce
}:
mkDerivation {
pname = "jrg_wiki_pandoc_converter_filters";
version = "0.0.0.0";
src = ./.;
libraryHaskellDepends = [
base bytestring directory filepath filestore
hslogger mtl network network-uri pandoc pandoc-types process SHA
utf8-string process-streaming pipes-transduce
];
executableSystemDepends = with pkgs; [
curl
wget
graphviz
plantuml
ditaa
jre
diagrams-builder
coreutils # For `realpath` used in `./run.sh`.
];
license = "GPL";
};
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
drv = haskellPackages.callPackage f {};
in
if pkgs.lib.inNixShell then drv.env else drv