-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig
71 lines (64 loc) · 2.3 KB
/
Config
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
60
61
62
63
64
65
66
67
68
69
70
71
let opts =
{ buildDeps = [ "dhall-text", "dhall", "cargo", "stack" ]
, haskellPkgs =
[ "lab1010-1-hs"
, "workdown"
, "turkish"
, "papers-on-ipfs"
, "post-photo-to-tumblr"
, "f-var"
, "get-new-posts-on-subreddit"
, "ipfs-s3-bridge"
, "copy-blocks"
, "fatty-prelude"
, "shell-conduit"
, "rio"
, "multihash"
]
, hsExtraDeps =
[ "attoparsec-conduit-1.1.0"
, "reddit-0.2.2.2"
, "api-builder-0.14.0.0"
, "unliftio-0.2.4.0"
, "base58-bytestring-0.1.0"
]
, rustPkgs = [ "lab1010-1-rs", "mutbst-rs", "mutlist-rs" ]
, stackResolver = "lts-10.3"
}
in let map = ./ipfs/QmYmByX6W9srN4cwFCEL58KzAH937Es5qyhFnWHoWnYtVH/Prelude/List/map
in let concatSep = ./ipfs/QmYmByX6W9srN4cwFCEL58KzAH937Es5qyhFnWHoWnYtVH/Prelude/Text/concatSep
in let mapText = map Text Text
in let pkg = λ(nm : Text) → "pkg/" ++ nm
in { cargo =
{ dependencies = { lab1010-1-rs = { path = "pkg/lab1010-1-rs" }
, mutlist-rs = { path = "pkg/mutlist-rs" }
, mutbst-rs = { path = "pkg/mutbst-rs" } }
, workspace = { members = mapText pkg opts.rustPkgs }
}
, stack =
{ extra-deps = opts.hsExtraDeps
, packages = mapText pkg opts.haskellPkgs
, resolver = opts.stackResolver
}
, nix = ''
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "toys";
buildInputs = [ ${concatSep " " opts.buildDeps} ];
}
''
, cargo-lock = ''
[root]
name = "lab1010-1-rs"
version = "0.1.0"
dependencies = [
"text_io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "text_io"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
[metadata]
"checksum text_io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "090d2ee73ae8f01646d500fbb72f99f0b2aea174b7b15d58359bbdf083f73e6d"
''
}