|
31 | 31 | }; |
32 | 32 | }; |
33 | 33 | pkgs = import sources.nixpkgs { inherit system config; }; |
34 | | - pkgsNative = localLib.iohkNix.getPkgsDefault {}; |
35 | 34 | sources = localLib.sources; |
| 35 | + flake-compat = import sources.flake-compat; |
| 36 | + walletFlake = flake-compat { src = sources.cardano-wallet; }; |
| 37 | + walletPackages = with walletFlake.defaultNix.hydraJobs; { |
| 38 | + x86_64-windows = linux.windows; |
| 39 | + x86_64-linux = linux.native; |
| 40 | + x86_64-darwin = macos.intel; |
| 41 | + aarch64-darwin = macos.silicon; |
| 42 | + }.${target}; |
36 | 43 | walletPkgs = import "${sources.cardano-wallet}/nix" {}; |
37 | 44 | # only used for CLI, to be removed when upgraded to next node version |
38 | 45 | nodePkgs = import "${sources.cardano-node}/nix" {}; |
|
73 | 80 |
|
74 | 81 | sources = localLib.sources; |
75 | 82 | bridgeTable = { |
76 | | - cardano = self.callPackage ./nix/cardano-bridge.nix { |
77 | | - cardano-wallet = self.cardano-wallet.cardano-wallet; |
78 | | - cardanoWalletPkgs = self.cardano-wallet.pkgs; |
79 | | - }; |
| 83 | + cardano = self.callPackage ./nix/cardano-bridge.nix {}; |
80 | 84 | }; |
81 | | - cardano-wallet = import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; crossSystem = crossSystem walletPkgs.lib; }; |
82 | | - cardano-wallet-native = import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; }; |
83 | | - cardano-address = (import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; crossSystem = crossSystem walletPkgs.lib; }).cardano-address; |
84 | | - mock-token-metadata-server = (import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; crossSystem = crossSystem walletPkgs.lib; }).mock-token-metadata-server; |
| 85 | + inherit (walletPackages) cardano-wallet; |
| 86 | + inherit (walletPackages) cardano-address; |
| 87 | + inherit (walletPackages) mock-token-metadata-server; |
85 | 88 | cardano-shell = import self.sources.cardano-shell { inherit system; crossSystem = crossSystem shellPkgs.lib; }; |
86 | | - local-cluster = if cluster == "selfnode" then (import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; crossSystem = crossSystem walletPkgs.lib; }).local-cluster else null; |
| 89 | + local-cluster = if cluster == "selfnode" then walletPackages.local-cluster else null; |
87 | 90 | cardano-node-cluster = let |
88 | 91 | # Test wallets with known mnemonics |
89 | 92 | walletTestGenesisYaml = (self.sources.cardano-wallet + "/lib/shelley/test/data/cardano-node-shelley/genesis.yaml"); |
|
99 | 102 | in (import self.sources.cardano-node { inherit system customConfig; crossSystem = crossSystem nodePkgs.lib; }).cluster; |
100 | 103 | cardano-node = if useLocalNode |
101 | 104 | then (import self.sources.cardano-node { inherit system; crossSystem = crossSystem nodePkgs.lib; }).cardano-node |
102 | | - else self.cardano-wallet.cardano-node; |
| 105 | + else walletPackages.cardano-node; |
103 | 106 | cardano-cli = if useLocalNode |
104 | 107 | then (import self.sources.cardano-node { inherit system; crossSystem = crossSystem nodePkgs.lib; }).haskellPackages.cardano-cli |
105 | | - else self.cardano-wallet.cardano-cli; |
| 108 | + else walletPackages.cardano-cli; |
106 | 109 | darwin-launcher = self.callPackage ./nix/darwin-launcher.nix {}; |
107 | 110 |
|
108 | 111 | # a cross-compiled fastlist for the ps-list package |
|
123 | 126 | network = cluster; |
124 | 127 | os = ostable.${target}; |
125 | 128 | backend = nodeImplementation; |
126 | | - runCommandNative = pkgsNative.runCommand; |
127 | 129 | }; |
128 | 130 |
|
129 | 131 | unsignedUnpackedCardano = self.daedalus-bridge; # TODO |
|
264 | 266 | pushd dlls |
265 | 267 | ${if dummyInstaller then "touch foo" else "unzip ${self.dlls}"} |
266 | 268 | popd |
267 | | - cp -v ${self.unpackedCardano}/bin/* . |
| 269 | + cp -vr ${self.unpackedCardano}/bin/* . |
268 | 270 | cp -v ${self.nsisFiles}/{*.yaml,*.json,daedalus.nsi,*.key,*.cert} . |
269 | 271 | cp ${self.uninstaller}/uninstall.exe ../uninstall.exe |
270 | 272 | if [ -f ${self.nsisFiles}/block-0.bin ]; then |
|
0 commit comments