|
33 | 33 | }; |
34 | 34 | pkgs = import sources.nixpkgs { inherit system config; }; |
35 | 35 | sources = localLib.sources // { |
36 | | - cardano-wallet = |
37 | | - if target != "aarch64-darwin" |
38 | | - then localLib.sources.cardano-wallet |
39 | | - else pkgs.runCommand "cardano-wallet" {} '' |
40 | | - cp -r ${localLib.sources.cardano-wallet} $out |
41 | | - chmod -R +w $out |
42 | | - cd $out |
43 | | - patch -p1 -i ${./nix/cardano-wallet--enable-aarch64-darwin.patch} |
44 | | - ''; |
| 36 | + cardano-wallet = pkgs.runCommand "cardano-wallet" {} '' |
| 37 | + cp -r ${localLib.sources.cardano-wallet} $out |
| 38 | + chmod -R +w $out |
| 39 | + cd $out |
| 40 | + patch -p1 -i ${./nix/cardano-wallet--enable-aarch64-darwin.patch} |
| 41 | + patch -p1 -i ${./nix/cardano-wallet--expose-windowsPackages.patch} |
| 42 | + patch -p1 -i ${./nix/cardano-wallet--proper-runtimeNodePkgs.patch} |
| 43 | + ''; |
45 | 44 | }; |
46 | 45 | haskell-nix = walletFlake.inputs.haskellNix.legacyPackages.${system}.haskell-nix; |
47 | 46 | flake-compat = import sources.flake-compat; |
48 | 47 | walletFlake = (flake-compat { src = sources.cardano-wallet; }).defaultNix; |
49 | | - walletPackages = with walletFlake.hydraJobs; { |
50 | | - x86_64-windows = linux.windows; |
51 | | - x86_64-linux = linux.native; |
52 | | - x86_64-darwin = macos.intel; |
53 | | - aarch64-darwin = macos.silicon; |
| 48 | + walletPackages = { |
| 49 | + x86_64-windows = walletFlake.packages.x86_64-linux.windowsPackages; |
| 50 | + x86_64-linux = walletFlake.packages.x86_64-linux; |
| 51 | + x86_64-darwin = walletFlake.packages.x86_64-darwin; |
| 52 | + aarch64-darwin = walletFlake.packages.aarch64-darwin; |
54 | 53 | }.${target}; |
55 | 54 | walletPkgs = walletFlake.legacyPackages.${system}.pkgs; |
56 | 55 | cardanoWorldFlake = (flake-compat { src = sources.cardano-world; }).defaultNix.outputs; |
|
0 commit comments