This is the document explain how to connect to Cardano on MacOS
Use this tutorial: https://github.com/input-output-hk/cardano-sl/blob/master/docs/how-to/build-cardano-sl-and-daedalus-from-source-code.md
Find nix-build
under /nix/store/
cd /nix/store/
find ./ -name nix-build
Run this below, to start build cardano-sl-1.0
/nix/store/{hashkey}/bin/nix-build -A cardano-sl-static --cores 0 --max-jobs 2 --no-build-output --out-link cardano-sl-1.0
Under /cardano-sl folder, run this command below
/nix/store/{hashkey}/bin/nix-build release.nix -A connect.mainnetWallet -o connect-to-mainnet
After build, we will see connect-to-mainnet
, and run it
./connect-to-mainnet
Download Haskell stack to use stack build https://docs.haskellstack.org/en/stable/install_and_upgrade/
brew install haskell-stack
xcode-select --install
stack setup
symbol link of nix-shell
& nix-build
ln -s /nix/store/{hashkey}/bin/nix-build /usr/local/bin/nix-build
ln -s /nix/store/{hashkey}/bin/nix-shell /usr/local/bin/nix-shell
Install libiconv
brew install libiconv
If there is any issue on it, change this line add --nix
after --dependencies-only
, and run ./scripts/build/cardano-sl.sh
https://github.com/input-output-hk/cardano-sl/blob/master/scripts/build/cardano-sl.sh#L206