Skip to content

Commit 5201ff9

Browse files
authored
Merge branch 'main' into fix-ledger-api-doc
2 parents dcffc61 + 945b34e commit 5201ff9

File tree

39 files changed

+703
-207
lines changed

39 files changed

+703
-207
lines changed

Cargo.lock

Lines changed: 0 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,40 +36,50 @@
3636
(std.blockTypes.functions "constants")
3737
(std.blockTypes.functions "lib")
3838
(std.blockTypes.functions "toolchains")
39+
(std.blockTypes.installables "artifacts")
40+
(std.blockTypes.installables "libraries")
3941
(std.blockTypes.installables "packages")
4042
(std.blockTypes.nixago "configs")
4143
(std.blockTypes.runnables "operables")
4244
];
4345
}
4446
{
4547
devShells = std.harvest inputs.self ["automation" "devshells"];
48+
artifacts = std.harvest inputs.self [
49+
["artifacts" "artifacts"]
50+
];
51+
containers = std.harvest inputs.self [
52+
["jormungandr" "containers"]
53+
["vit-servicing-station" "containers"]
54+
["vit-testing" "containers"]
55+
];
56+
libraries = std.harvest inputs.self [
57+
["catalyst-toolbox" "libraries"]
58+
["chain-libs" "libraries"]
59+
["chain-wallet-libs" "libraries"]
60+
["jormungandr" "libraries"]
61+
["jortestkit" "libraries"]
62+
["vit-servicing-station" "libraries"]
63+
["vit-testing" "libraries"]
64+
];
4665
packages = std.harvest inputs.self [
47-
["artifacts" "packages"]
4866
["catalyst-toolbox" "packages"]
49-
["chain-libs" "packages"]
50-
["chain-wallet-libs" "packages"]
5167
["jormungandr" "packages"]
52-
["jortestkit" "packages"]
5368
["vit-servicing-station" "packages"]
5469
["vit-testing" "packages"]
5570
["voting-tools" "packages"]
5671
["voting-tools-rs" "packages"]
5772
];
58-
containers = std.harvest inputs.self [
59-
["jormungandr" "containers"]
60-
["vit-servicing-station" "containers"]
61-
["vit-testing" "containers"]
62-
];
6373
};
6474

6575
nixConfig = {
6676
extra-substituters = [
67-
#"https://hydra.iohk.io"
68-
"https://iog-gov-nix.s3.eu-central-1.amazonaws.com"
77+
"https://cache.iog.io"
78+
"https://iog-catalyst-cache.s3.eu-central-1.amazonaws.com"
6979
];
7080
extra-trusted-public-keys = [
7181
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
72-
"gov:uG8+LG8RqFGScUmOrDkGb4VCbtNhChbnycVnxZxb8AY="
82+
"catalyst:kNW0n7ijUJDvu4BrpqC3j54rgoHNccXx7ABuVzuL9WM="
7383
];
7484
allow-import-from-derivation = "true";
7585
};

nix/automation/devshells.nix

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,23 @@
1010

1111
catalystCore = {...}: {
1212
name = nixpkgs.lib.mkForce "Catalyst Core";
13-
env = mkEnv {
14-
PROTOC = "${nixpkgs.protobuf}/bin/protoc";
15-
PROTOC_INCLUDE = "${nixpkgs.protobuf}/include";
16-
};
13+
env = with nixpkgs;
14+
mkEnv {
15+
OPENSSL_NO_VENDOR = 1;
16+
OPENSSL_DIR = "${l.getDev openssl}";
17+
OPENSSL_LIB_DIR = "${l.getLib openssl}/lib";
18+
PROTOC = "${protobuf}/bin/protoc";
19+
PROTOC_INCLUDE = "${protobuf}/include";
20+
};
1721
nixago = [
1822
cell.configs.lefthook
1923
cell.configs.prettier
2024
cell.configs.treefmt
2125
];
2226
packages = with nixpkgs; [
27+
gcc
2328
rustToolchain
2429
pkg-config
25-
openssl
2630
protobuf
2731
uniffi-bindgen
2832
postgresql

nix/catalyst-toolbox/libraries.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
inputs,
3+
cell,
4+
}: let
5+
inherit (inputs) nixpkgs std;
6+
inherit (inputs.cells.lib) lib;
7+
l = nixpkgs.lib // builtins;
8+
9+
name = "catalyst-toolbox";
10+
mkSimplePkg = subPkg: lib.mkPackage {pkgPath = "${name}/${subPkg}";};
11+
in {
12+
snapshot-lib = mkSimplePkg "snapshot-lib";
13+
}

nix/catalyst-toolbox/packages.nix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
l = nixpkgs.lib // builtins;
88

99
name = "catalyst-toolbox";
10-
root = inputs.self + "/src/${name}";
11-
12-
mkSimplePkg = subPkg: lib.mkPackage {pkgPath = root + "/${subPkg}";};
10+
mkSimplePkg = subPkg: lib.mkPackage {pkgPath = "${name}/${subPkg}";};
1311
in {
1412
catalyst-toolbox = lib.mkPackage {
15-
pkgPath = root + "/catalyst-toolbox";
13+
pkgPath = "${name}/catalyst-toolbox";
1614
nativeBuildInputs = with nixpkgs; [
1715
postgresql.lib
1816
];
1917
};
20-
snapshot-lib = mkSimplePkg "snapshot-lib";
2118
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
l = nixpkgs.lib // builtins;
88

99
name = "chain-libs";
10-
root = inputs.self + "/src/${name}";
11-
12-
mkSimplePkg = subPkg: lib.mkPackage {pkgPath = root + "/${subPkg}";};
10+
mkSimplePkg = subPkg: lib.mkPackage {pkgPath = "${name}/${subPkg}";};
1311
in {
1412
chain-addr = mkSimplePkg "chain-addr";
1513
cardano-legacy-address = mkSimplePkg "cardano-legacy-address";
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77
l = nixpkgs.lib // builtins;
88

99
name = "chain-wallet-libs";
10-
root = inputs.self + "/src/${name}";
11-
12-
mkSimplePkg = subPkg: lib.mkPackage {pkgPath = root + "/${subPkg}";};
10+
mkSimplePkg = subPkg: lib.mkPackage {pkgPath = "${name}/${subPkg}";};
1311
in {
14-
bip39 = mkSimplePkg "bip39";
1512
chain-path-derivation = mkSimplePkg "chain-path-derivation";
1613
hdkeygen = mkSimplePkg "hdkeygen";
1714
symmetric-cipher = mkSimplePkg "symmetric-cipher";
1815
wallet = mkSimplePkg "wallet";
1916
wallet-c = mkSimplePkg "bindings/wallet-c";
2017
wallet-core = mkSimplePkg "bindings/wallet-core";
21-
wallet-js = mkSimplePkg "bindings/wallet-js";
18+
wallet-wasm-js = mkSimplePkg "bindings/wallet-wasm-js";
2219
}

nix/jormungandr/libraries.nix

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
inputs,
3+
cell,
4+
}: let
5+
inherit (inputs) nixpkgs std;
6+
inherit (inputs.cells.lib) lib;
7+
l = nixpkgs.lib // builtins;
8+
9+
name = "jormungandr";
10+
mkSimplePkg = subPkg: lib.mkPackage {pkgPath = "${name}/${subPkg}";};
11+
in {
12+
blockchain = mkSimplePkg "modules/blockchain";
13+
explorer = mkSimplePkg "explorer";
14+
hersir = mkSimplePkg "testing/hersir";
15+
jormungandr-lib = mkSimplePkg "jormungandr-lib";
16+
loki = mkSimplePkg "testing/loki";
17+
mjolnir = mkSimplePkg "testing/mjolnir";
18+
settings = mkSimplePkg "modules/settings";
19+
thor = mkSimplePkg "testing/thor";
20+
}

nix/jormungandr/operables.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
cell,
44
}: let
55
inherit (inputs) nixpkgs std;
6-
inherit (inputs.cells) artifacts;
6+
inherit (inputs.cells.artifacts) artifacts;
77
inherit (inputs.cells.lib) constants;
88
l = nixpkgs.lib // builtins;
99

1010
mkOperable = package: namespace: let
11-
artifacts' = artifacts.packages."artifacts-${namespace}";
11+
artifacts' = artifacts."artifacts-${namespace}";
1212
in
1313
std.lib.ops.mkOperable {
1414
inherit package;

0 commit comments

Comments
 (0)