Skip to content

Commit

Permalink
cardano-address: add to daedalus bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
disassembler committed Jun 19, 2020
1 parent e898fd5 commit e6efdae
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ let
};
cardano-wallet = import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; crossSystem = crossSystem walletPkgs.lib; };
cardano-wallet-native = import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; };
cardano-address = (import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; crossSystem = crossSystem walletPkgs.lib; }).haskellPackages.cardano-addresses.components.exes.cardano-address;
cardano-shell = import self.sources.cardano-shell { inherit system; crossSystem = crossSystem shellPkgs.lib; };
cardano-cli = (import self.sources.cardano-node { inherit system; crossSystem = crossSystem nodePkgs.lib; }).haskellPackages.cardano-cli.components.exes.cardano-cli;
cardano-node-cluster = (import self.sources.cardano-node { inherit system; crossSystem = crossSystem nodePkgs.lib; }).cluster;
Expand Down
4 changes: 2 additions & 2 deletions installers/common/MacInstaller.hs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ makeComponentRoot Options{oBackend,oCluster} appRoot darwinConfig@DarwinConfig{d
mainBinary Byron = "cardano-wallet-byron"
common bridge
-- Executables (from daedalus-bridge)
forM_ [mainBinary kind, "cardano-node", "cardano-cli", "export-wallets" ] $ \f ->
forM_ [mainBinary kind, "cardano-node", "cardano-cli", "export-wallets", "cardano-address" ] $ \f ->
cp (bridge </> "bin" </> f) (dir </> f)
forM_ ["config.yaml", "genesis.json", "topology.yaml" ] $ \f ->
cp f (dataDir </> f)
Expand All @@ -280,7 +280,7 @@ makeComponentRoot Options{oBackend,oCluster} appRoot darwinConfig@DarwinConfig{d
rmtree $ dataDir </> "app/installers"

-- Rewrite libs paths and bundle them
void $ chain (encodeString dir) $ fmap tt [dir </> "cardano-launcher", dir </> mainBinary kind, dir </> "cardano-node", dir </> "cardano-cli", dir </> "export-wallets" ]
void $ chain (encodeString dir) $ fmap tt [dir </> "cardano-launcher", dir </> mainBinary kind, dir </> "cardano-node", dir </> "cardano-cli", dir </> "export-wallets", dir </> "cardano-address" ]
Jormungandr bridge -> do
common bridge
-- Executables (from daedalus-bridge)
Expand Down
1 change: 1 addition & 0 deletions installers/common/WindowsInstaller.hs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ writeInstallerNSIS outName (Version fullVersion') InstallerConfig{hasBlock0,inst
file [] "cardano-node.exe"
file [] (mainBinary kind)
file [] "export-wallets.exe"
file [] "cardano-address.exe"
file [] "cardano-cli.exe"
file [] "config.yaml"
file [] "topology.yaml"
Expand Down
3 changes: 2 additions & 1 deletion nix/cardano-bridge.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ target, pkgs, cardanoWalletPkgs, runCommand, cardano-wallet, cardano-node, cardano-shell, export-wallets, cardano-cli }:
{ target, pkgs, cardanoWalletPkgs, runCommand, cardano-wallet, cardano-node, cardano-shell, export-wallets, cardano-cli, cardano-address }:

let
commonLib = import ../lib.nix {};
Expand All @@ -13,6 +13,7 @@ in runCommand "daedalus-cardano-bridge" {
cd $out/bin
echo ${cardano-wallet.version} > $out/version
cp ${cardano-wallet}/bin/* .
cp ${cardano-address}/bin/* .
cp -f ${cardano-shell.nix-tools.cexes.cardano-launcher.cardano-launcher}/bin/cardano-launcher* .
cp -f ${cardano-node}/bin/cardano-node* .
cp -f ${export-wallets}/bin/export-wallets* .
Expand Down
2 changes: 1 addition & 1 deletion nix/launcher-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ let
macPackageName = "Daedalus${network}";
dataDir = dataDir;
hasBlock0 = false;
installerWinBinaries = [ "cardano-launcher.exe" "cardano-node.exe" "cardano-wallet-byron.exe" "export-wallets.exe" "cardano-cli.exe" ];
installerWinBinaries = [ "cardano-launcher.exe" "cardano-node.exe" "cardano-wallet-byron.exe" "export-wallets.exe" "cardano-cli.exe" "cardano-address.exe" ];
};

in {
Expand Down

0 comments on commit e6efdae

Please sign in to comment.