@@ -57,292 +57,9 @@ in
57 # x86_64-darwin = (import ./test { nixpkgs = nixpkgsSrc; nixpkgsArgs = { system = "x86_64-darwin"; }; });
57 # x86_64-darwin = (import ./test { nixpkgs = nixpkgsSrc; nixpkgsArgs = { system = "x86_64-darwin"; }; });
59 examples = let
59 examples = let
60− iohk-archive = name: hash: "https://github.com/input-output-hk/${name}/archive/${hash}.tar.gz";
60+ cardano-sl-args = import ./examples/cardano-sl-args.nix;
61− mkCacheModule = cache:
61+ cardano-wallet-args = import ./examples/cardano-wallet-args.nix;
62− # for each item in the `cache`, set
62+ plutus-args = import ./examples/plutus-args.nix;
63− # packages.$name.src = fetchgit ...
65− # packages.$name.postUnpack = ...
66− # if subdir is given.
68− # We need to do this, as cabal-to-nix will generate
69− # src = /nix/store/... paths, and when we build the
70− # package we won't have access to the /nix/store
71− # path. As such we regenerate the fetchgit command
72− # we used in the first place, and thus have a proper
75− # TODO: this should be moved into `call-stack-to-nix`
76− # it should be automatic and not the burden of
77− # the end user to work around nix peculiarities.
78− { packages = builtins.foldl' (x: y: x // y) {}
79− (builtins.map ({ name, url, rev, sha256, subdir ? null, ... }:
80− { ${name} = { src = fetchgit { inherit url rev sha256; }; }
81− // lib.optionalAttrs (subdir != null) { postUnpack = "sourceRoot+=/${subdir}; echo source root reset to $sourceRoot"; };
84− cardano-sl-args = rec {
85− src = builtins.fetchTarball (iohk-archive "cardano-sl" "1a792d7cd0f0c93a0f0c28f66372bce3c3808dbd");
87− "cardano-sl-crypto-test"
91− "cardano-sl-infra-test"
93− "cardano-sl-tools-post-mortem"
95− "cardano-sl-core-test"
96− "cardano-sl-util-test"
98− "cardano-sl-script-runner"
100− "cardano-sl-networking"
101− "cardano-sl-explorer"
102− "cardano-sl-chain-test"
104− "cardano-sl-mnemonic"
105− "cardano-sl-generator"
108− "cardano-sl-node-ipc"
111− "cardano-sl-db-test"
114− "cardano-sl-binary-test"
120− { name = "cardano-crypto";
121− url = "https://github.com/input-output-hk/cardano-crypto";
122− rev = "4590efa638397e952a51a8994b5543e4ea3c1ecd";
123− sha256 = "0hl2n3bba5v2j0lmxhs7hs01z3aznh2bwf9cb434icq2g0bl8ms3"; }
124− { name = "haskell-ip";
125− cabal-file = "ip.cabal";
126− url = "https://github.com/andrewthad/haskell-ip";
127− rev = "9bb453139aa82cc973125091800422a523e1eb8f";
128− sha256 = "199mfpbgca7rvwvwk2zsmcpibc0sk0ni7c5zlf4gk3cps8s85gyr"; }
129− { name = "time-units";
130− url = "https://github.com/serokell/time-units.git";
131− rev = "6c3747c1ac794f952de996dd7ba8a2f6d63bf132";
132− sha256 = "0psdr1if0rgnn24698x3583m0603rwd3sd7yb9whj03hskmkwpgs";
134− { name = "kademlia";
135− url = "https://github.com/serokell/kademlia.git";
136− rev = "7120bb4d28e708acd52dfd61d3dca7914fac7d7f";
137− sha256 = "1k1wp9dwhzzqfivxc28vhxfqplnyh916crr7bhsiv829d6qifhw1";
139− { name = "network-transport";
140− url = "https://github.com/serokell/network-transport";
141− rev = "018a50b9042c2115c3ec9c9fd5ca5f28737dd29c";
142− sha256 = "0lqa26l2ikpq6a4s7qm9b2favx59w82i0wngakhfyax66fpixp8q";
144− { name = "network-transport-tcp";
145− url = "https://github.com/avieth/network-transport-tcp";
146− rev = "2634e5e32178bb0456d800d133f8664321daa2ef";
147− sha256 = "03shp9prflhgqzw7pymw1pq2q7s1wf46pyjm2csx8646snrhf35i";
149− { name = "network-transport-inmemory";
150− url = "https://github.com/avieth/network-transport-inmemory";
151− rev = "5d8ff2b07b9df35cf61329a3d975e2c8cf95c12a";
152− sha256 = "0ak64rks3lk3kk5wyndrrk2swmd84h9diribzix305xwz1jhjj9w";
154− { name = "acid-state";
155− url = "https://github.com/parsonsmatt/acid-state";
156− rev = "a1b23e2056f134e53f705a694ab85deeecabec5c";
157− sha256 = "0mgdk8252g7wbb0afyn21pcn3bwh4vainy3h2d0xsv4hlpgqgnw8";
159− { name = "socket-io";
160− url = "https://github.com/input-output-hk/engine.io";
161− rev = "d3c55f51bb81cee7d0d551de930ce65fe7d76756";
162− sha256 = "139c0yfnj57cpwg4k0am2rp35sh959394nvlb98011rjy68200qc";
163− subdir = "socket-io";
165− { name = "engine-io";
166− url = "https://github.com/input-output-hk/engine.io";
167− rev = "d3c55f51bb81cee7d0d551de930ce65fe7d76756";
168− sha256 = "139c0yfnj57cpwg4k0am2rp35sh959394nvlb98011rjy68200qc";
169− subdir = "engine-io";
171− { name = "engine-io-wai";
172− url = "https://github.com/input-output-hk/engine.io";
173− rev = "d3c55f51bb81cee7d0d551de930ce65fe7d76756";
174− sha256 = "139c0yfnj57cpwg4k0am2rp35sh959394nvlb98011rjy68200qc";
175− subdir = "engine-io-wai";
177− { name = "canonical-json";
178− url = "https://github.com/well-typed/canonical-json.git";
179− rev = "ddfe3593b80b5ceb88842bb7a6f2268df75d2c2f";
180− sha256 = "02fzn1xskis1lc1pkz0j92v6ipd89ww0k2p3dvwpm3yap5dpnm7k";
183− url = "https://github.com/corsis/clock.git";
184− rev = "ef60bd51a3587a173adf565c33bf2886df6e3842";
185− sha256 = "1r4n9imls483f7wd61fi1jk16z2k7w36gpx798sqidvwbnc831q1";
187− { name = "rocksdb-haskell-ng";
188− url = "https://github.com/input-output-hk/rocksdb-haskell-ng.git";
189− rev = "49f501a082d745f3b880677220a29cafaa181452";
190− sha256 = "02jvri8ik8jgrxwa6qmh3xcwqvm4s27iv3sxpjpny79nlhlxvfzp";
192− { name = "log-warper";
193− url = "https://github.com/input-output-hk/log-warper";
194− rev = "5271ab6c33541b8155ca203e714875974ec116be";
195− sha256 = "1h14004a8iwr8nw31pqq6kfdhfsyzzl8a50hrmj2acjqq6mbdl2m";
197− { name = "universum";
198− url = "https://github.com/input-output-hk/universum";
199− rev = "15f7db758ff5a24b874de2247f6f7a4576562da5";
200− sha256 = "127bs29zpjcc40777dv7figk05gd00b9ja57sp11w440qr5h72hk";
202− { name = "serokell-util";
203− url = "https://github.com/input-output-hk/serokell-util";
204− rev = "457f1d149c6e238841f283a1faf7bc8fb021b27d";
205− sha256 = "0llbryqna9p03db3ka4933vzf4jw1yxdbsf7cqi2pivsy1vp6kp0";
207− { name = "inspector";
208− url = "https://github.com/primetype/inspector.git";
209− rev = "c975f4329365f0379c04358138e616fb96fb0b79";
210− sha256 = "12q1v7a8kcw7qi4lws4j3mvxwfkhni6zmp870kmnkgbgwvrax9gs";
213− # This is needed due to some deficiencies in stackage snapshots.
214− # maybe we should make this part of some `stack-default-pkg-def-extras`?
215− # We have similar logic in the snapshots.nix file to deal with this in
218− # TODO: move this somewhere into stackProject
222− "transformers" = (((hackage.transformers)."0.5.6.2").revisions).default;
223− "process" = (((hackage.process)."1.6.5.0").revisions).default;
228− "hsc2hs" = (((hackage.hsc2hs)."0.68.4").revisions).default;
232− modules = [ (mkCacheModule cache) ];
234− cardano-wallet-args = rec {
235− src = builtins.fetchTarball (iohk-archive "cardano-wallet" "d525e85fe19a37d8b5648ac783ef35474be38bcc");
239− "cardano-wallet-http-bridge"
240− "cardano-wallet-launcher"
241− "cardano-wallet-test-utils"
242− "cardano-wallet-core"
243− "cardano-wallet-jormungandr"
244− "cardano-wallet-cli"
246− "cardano-wallet-core-integration"
248− # wee need these, as they are referenced in the stack.yaml file; however we can't
249− # fetch them at IFD time as they don't provide the sha256. Hence we use the cache-file
250− # facility on stack-to-nix and pre-populate the cache file with the relevant hashes.
252− { name = "cardano-crypto";
253− url = "https://github.com/input-output-hk/cardano-crypto";
254− rev = "3c5db489c71a4d70ee43f5f9b979fcde3c797f2a";
255− sha256 = "0lss4x41m0ylhximqjc56ps0y3pag3x58wm480pzfa48lpk4gqpk"; }
256− { name = "persistent-sqlite";
257− url = "https://github.com/KtorZ/persistent";
258− rev = "79f2ece07eafae005a703c8eda1bd2420b5e07b5";
259− sha256 = "081bhdg52wn7vgxsgl4aimy73ccai05j64r24hwkdnjj4kz96lia";
260− subdir = "persistent-sqlite"; }
261− { name = "iohk-monitoring";
262− url = "https://github.com/input-output-hk/iohk-monitoring-framework";
263− rev = "bd31cd2f3922010ddb76bb869f29c4e63bb8001b";
264− subdir = "iohk-monitoring";
265− sha256 = "1dfk505qbpk6p3gcpxa31wmg98qvx9hlrxlf0khaj7hizf3b8b60"; }
266− { name = "contra-tracer";
267− url = "https://github.com/input-output-hk/iohk-monitoring-framework";
268− rev = "bd31cd2f3922010ddb76bb869f29c4e63bb8001b";
269− subdir = "contra-tracer";
270− sha256 = "1dfk505qbpk6p3gcpxa31wmg98qvx9hlrxlf0khaj7hizf3b8b60"; }
272− # This is needed due to some deficiencies in stackage snapshots.
273− # maybe we should make this part of some `stack-default-pkg-def-extras`?
274− # We have similar logic in the snapshots.nix file to deal with this in
277− # TODO: move this somewhere into stackProject
281− "transformers" = (((hackage.transformers)."0.5.6.2").revisions).default;
282− "process" = (((hackage.process)."1.6.5.0").revisions).default;
287− "hsc2hs" = (((hackage.hsc2hs)."0.68.4").revisions).default;
291− modules = [ (mkCacheModule cache) ];
294− src = builtins.fetchTarball (iohk-archive "plutus" "0d76e98ab267d621ad15002b5f824cad71797754");
296− { name = "row-types";
297− url = "https://github.com/target/row-types";
298− rev = "1e8d5e084ffd46f6c7842826a1f62c60820885df";
299− sha256 = "0ly5m4r8wkm8gdqyrqzsjfmp189yxsd4qp0zi3idrbgfaf45sk9k"; }
300− { name = "purescript-bridge";
301− url = "https://github.com/shmish111/purescript-bridge.git";
302− rev = "0042602f8a195b1fe185138f9ccca02020b8dd62";
303− sha256 = "1vl88g41f4vvgw9iyn7zd7i52qshpnk02z0y6czg4zy7wk3q12gz"; }
304− { name = "servant-purescript";
305− url = "https://github.com/shmish111/servant-purescript.git";
306− rev = "ece5d1dad16a5731ac22040075615803796c7c21";
307− sha256 = "1axcbsaym64q67hvjc7b3izd48cgqwi734l7f7m22jpdc80li5f6"; }
308− { name = "cardano-crypto";
309− url = "https://github.com/input-output-hk/cardano-crypto.git";
310− rev = "f5cecb6e424cc84f85b6a3e1f803517bb7b4cfb1";
311− sha256 = "1jyzai4sn9hi3p6r97h54f9a7an7vk38lwrbl4mds9zmdsw5f5ad"; }
313− url = "https://github.com/michaelpj/unlit.git";
314− rev = "9ca1112093c5ffd356fc99c7dafa080e686dd748";
315− sha256 = "145sffn8gbdn6xp9q5b75yd3m46ql5bnc02arzmpfs6wgjslfhff"; }
316− { name = "prometheus";
317− url = "https://github.com/bitnomial/prometheus.git";
318− rev = "69e4cefeb7d04d61a54cb0ae9fd57e2de134badb";
319− sha256 = "0h836qp0ic587gfyfkj9a53p8rczja50sfy2y8ymx8wwkmq9zdgc"; }
321− url = "https://github.com/shmish111/github.git";
322− rev = "cc27b9de4d5d0939235fa9a8b418de3ea4807bab";
323− sha256 = "0jx65x4c8s561nbxa0hv7mp8fvndfhs8i8gzxng7ym808n4n538i"; }
325− # This is needed due to some deficiencies in stackage snapshots.
326− # maybe we should make this part of some `stack-default-pkg-def-extras`?
327− # We have similar logic in the snapshots.nix file to deal with this in
330− # TODO: move this somewhere into stackProject
334− "transformers" = (((hackage.transformers)."0.5.6.2").revisions).default;
335− "process" = (((hackage.process)."1.6.5.0").revisions).default;
340− "hsc2hs" = (((hackage.hsc2hs)."0.68.4").revisions).default;
344− modules = [ (mkCacheModule cache) ];
347 x86_64-linux = {
64 x86_64-linux = {
348 # cardano-sl
65 # cardano-sl