Skip to content

Commit

Permalink
chore: switch to non-local deps
Browse files Browse the repository at this point in the history
  • Loading branch information
euonymos committed Nov 25, 2024
1 parent e875f75 commit f70472e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 22 deletions.
37 changes: 19 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
cardano-node.url = "github:input-output-hk/cardano-node/d7abccd4e90c38ff5cd4d6a7839689d888332056";

# CLB emulator
# clb.url = "github:mlabs-haskell/clb/9dcbaec98efaef6bd4c8f46c329660fa436c1839";
clb.url = "/home/euonymos/src/mlabs/clb";
clb.url = "github:mlabs-haskell/clb";

# Repository with network parameters
# NOTE(bladyjoker): Cardano configurations (yaml/json) often change format and break, that's why we pin to a specific known version.
Expand All @@ -55,7 +54,9 @@

# Get Ogmios and Kupo from cardano-nix
cardano-nix = {
url = "/home/euonymos/src/mlabs/cardano.nix";
# it stopped working for later commits on main somehow, so here is the merge
# commit for branch that brings support for ogmios 6.8.0
url = "github:mlabs-haskell/cardano.nix?rev=422b9398d7a7ca1f109900781c7d029db107c8c0";
inputs.nixpkgs.follows = "nixpkgs";
};

Expand Down
4 changes: 3 additions & 1 deletion nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ let
)
)
];
# here we export socket emulator binary so users can use it with cardano-testnet
# like: export CARDANO_NODE=$SOCKET_EMULATOR
shellHook = ''
export CARDANO_NODE=${pkgs.clb}/bin/cardano-node-socket-emulator
export SOCKET_EMULATOR=${pkgs.clb}/bin/cardano-node-socket-emulator
export NODE_PATH="${nodeModules}/lib/node_modules"
ln -sfn $NODE_PATH node_modules
export PATH="${nodeModules}/bin:$PATH"
Expand Down

0 comments on commit f70472e

Please sign in to comment.