@@ -1,6 +1,10 @@
11let iohk-archive = name: hash: "https://github.com/input-output-hk/${name}/archive/${hash}.tar.gz";
2+ src = builtins.fetchTarball (iohk-archive "cardano-wallet" "1fbd206bf6b368f08d603db130648ebd4efcedbc");
3+ iohkLib = import (src + "/nix/iohk-common.nix") {};
4+ jmPkgs = import (src + "/nix/jormungandr.nix") { inherit iohkLib; };
5+
26in rec {
3− src = builtins.fetchTarball (iohk-archive "cardano-wallet" "d525e85fe19a37d8b5648ac783ef35474be38bcc");
7+ inherit src;
48 pkgs = [
59 "bech32"
610 "text-class"
@@ -21,11 +25,21 @@ in rec {
2125 url = "https://github.com/input-output-hk/cardano-crypto";
2226 rev = "3c5db489c71a4d70ee43f5f9b979fcde3c797f2a";
2327 sha256 = "0lss4x41m0ylhximqjc56ps0y3pag3x58wm480pzfa48lpk4gqpk"; }
28+ { name = "persistent";
29+ url = "https://github.com/input-output-hk/persistent";
30+ rev = "107787ecc4c8a112375493cd66574f788f950fce";
31+ sha256 = "1livmfslqzadir5sc523r111wrd14s5k2nmvsxayk45hx3nnngfb";
32+ subdir = "persistent"; }
2433 { name = "persistent-sqlite";
25− url = "https://github.com/KtorZ/persistent";
26− rev = "79f2ece07eafae005a703c8eda1bd2420b5e07b5";
27− sha256 = "081bhdg52wn7vgxsgl4aimy73ccai05j64r24hwkdnjj4kz96lia";
34+ url = "https://github.com/input-output-hk/persistent";
35+ rev = "107787ecc4c8a112375493cd66574f788f950fce";
36+ sha256 = "1livmfslqzadir5sc523r111wrd14s5k2nmvsxayk45hx3nnngfb";
2837 subdir = "persistent-sqlite"; }
38+ { name = "persistent-template";
39+ url = "https://github.com/input-output-hk/persistent";
40+ rev = "107787ecc4c8a112375493cd66574f788f950fce";
41+ sha256 = "1livmfslqzadir5sc523r111wrd14s5k2nmvsxayk45hx3nnngfb";
42+ subdir = "persistent-template"; }
2943 { name = "iohk-monitoring";
3044 url = "https://github.com/input-output-hk/iohk-monitoring-framework";
3145 rev = "bd31cd2f3922010ddb76bb869f29c4e63bb8001b";
@@ -44,16 +58,46 @@ in rec {
4458 #
4559 # TODO: move this somewhere into stackProject
4660 pkg-def-extras = [
47− (hackage: {
48− packages = {
49− "transformers" = (((hackage.transformers)."0.5.6.2").revisions).default;
50− "process" = (((hackage.process)."1.6.5.0").revisions).default;
51− };
52− })
5361 (hackage: {
5462 packages = {
5563 "hsc2hs" = (((hackage.hsc2hs)."0.68.4").revisions).default;
5664 };
5765 })
5866 ];
67+
68+ modules = [
69+ # Add dependencies
70+ {
71+ packages.cardano-wallet-jormungandr.components.tests = {
72+ # Some tests want to write ~/.local/share/cardano-wallet
73+ integration.preBuild = "export HOME=`pwd`";
74+ # provide jormungandr command to test suites
75+ integration.build-tools = [
76+ jmPkgs.jormungandr
77+ jmPkgs.jormungandr-cli
78+ ];
79+ unit.build-tools = [ jmPkgs.jormungandr ];
80+ };
81+
82+ packages.cardano-wallet-core.components.tests.unit.preBuild = ''
83+ export SWAGGER_YAML=${src + "/specifications/api/swagger.yaml"}
84+ '';
85+ }
86+
87+ # Misc. build fixes for dependencies
88+ {
89+ # Cut down iohk-monitoring deps
90+ packages.iohk-monitoring.flags = {
91+ disable-ekg = true;
92+ disable-examples = true;
93+ disable-graylog = true;
94+ disable-gui = true;
95+ disable-prometheus = true;
96+ disable-systemd = true;
97+ };
98+
99+ # Katip has Win32 (>=2.3 && <2.6) constraint
100+ packages.katip.doExactConfig = true;
101+ }
102+ ];
59103}