Skip to content

Commit df32773

Browse files
authored
Merge pull request #3033 from input-output-hk/merge-release-5.0.0-into-main
Merge release 5.0.0 into main
2 parents 9410144 + f0fca98 commit df32773

File tree

288 files changed

+1608
-869
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+1608
-869
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions

default.nix

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ let
3737
chmod -R +w $out
3838
cd $out
3939
patch -p1 -i ${./nix/cardano-wallet--enable-aarch64-darwin.patch}
40-
patch -p1 -i ${builtins.path {
41-
# XXX: unfortunately, GitHub changed lengths of hashes in patches it returns for PRs,
42-
# that’s why we’re providing this patch inside our repo, with the same exact SHA-256,
43-
# to the one released in 4.12.0:
44-
path = ./nix/cardano-wallet--pr-3382--ledger-bug.patch;
45-
recursive = false;
46-
sha256 = "1ii12g2zikv4197c7bsh4v5dc1jzygn1jap8xvnr7mvh3a09pdgn";
47-
}}
4840
'';
4941
};
5042
haskellNix = import sources."haskell.nix" {};
@@ -58,6 +50,7 @@ let
5850
aarch64-darwin = macos.silicon;
5951
}.${target};
6052
walletPkgs = import "${sources.cardano-wallet}/nix" {};
53+
cardanoWorldFlake = (flake-compat { src = sources.cardano-world; }).defaultNix.outputs;
6154
# only used for CLI, to be removed when upgraded to next node version
6255
nodePkgs = import "${sources.cardano-node}/nix" {};
6356
shellPkgs = (import "${sources.cardano-shell}/nix") {};
@@ -76,11 +69,24 @@ let
7669
ostable.aarch64-darwin = "macos64-arm";
7770

7871
packages = self: {
79-
inherit walletFlake cluster pkgs version target nodeImplementation;
72+
inherit walletFlake cardanoWorldFlake cluster pkgs version target nodeImplementation;
8073
cardanoLib = localLib.iohkNix.cardanoLib;
8174
daedalus-bridge = self.bridgeTable.${nodeImplementation};
8275

83-
nodejs = pkgs.nodejs-16_x;
76+
nodejs = let
77+
njPath = pkgs.path + "/pkgs/development/web/nodejs";
78+
buildNodeJs = pkgs.callPackage (import (njPath + "/nodejs.nix")) {
79+
python = pkgs.python3;
80+
icu = pkgs.icu68; # can’t build against ICU 69: <https://chromium-review.googlesource.com/c/v8/v8/+/2477751>
81+
};
82+
in
83+
buildNodeJs {
84+
enableNpm = true;
85+
version = "14.17.0";
86+
sha256 = "1vf989canwcx0wdpngvkbz2x232yccp7fzs1vcbr60rijgzmpq2n";
87+
patches = pkgs.lib.optional pkgs.stdenv.isDarwin (njPath + "/bypass-xcodebuild.diff");
88+
};
89+
8490
nodePackages = pkgs.nodePackages.override { nodejs = self.nodejs; };
8591
yarnInfo = {
8692
version = "1.22.4";
@@ -140,7 +146,7 @@ let
140146
nsis = nsisNixPkgs.callPackage ./nix/nsis.nix {};
141147

142148
launcherConfigs = self.callPackage ./nix/launcher-config.nix {
143-
inherit devShell topologyOverride configOverride genesisOverride;
149+
inherit devShell topologyOverride configOverride genesisOverride system;
144150
network = cluster;
145151
os = ostable.${target};
146152
backend = nodeImplementation;
@@ -256,6 +262,24 @@ let
256262
'';
257263
uninstaller = if needSignedBinaries then self.signedUninstaller else self.unsignedUninstaller;
258264

265+
windowsIcons = let
266+
buildInputs = with pkgs; [ imagemagick ];
267+
# Allow fallback to `mainnet` if cluster’s icons don’t exist:
268+
srcCluster = if builtins.pathExists (./installers/icons + "/${cluster}") then cluster else "mainnet";
269+
in pkgs.runCommand "windows-icons-${cluster}" { inherit buildInputs; } ''
270+
mkdir -p $out/${cluster} $out
271+
cp -r ${./installers/icons + "/${srcCluster}"}/. $out/${cluster}/.
272+
cp ${./installers/icons/installBanner.bmp} $out/installBanner.bmp
273+
cd $out/${cluster}
274+
rm *.ico *.ICO || true # XXX: just in case
275+
for f in *.png ; do
276+
# XXX: these sizes are too large for the ICO format:
277+
if [ "$f" == 1024x1024.png ] || [ "$f" == 512x512.png ] ; then continue ; fi
278+
convert "$f" "''${f%.png}.ico"
279+
done
280+
convert 16x16.png 24x24.png 32x32.png 48x48.png 64x64.png 128x128.png 256x256.png ${cluster}.ico
281+
'';
282+
259283
unsigned-windows-installer = let
260284
installDir = self.launcherConfigs.installerConfig.spacedName;
261285
in pkgs.runCommand "win64-installer-${cluster}" {
@@ -270,7 +294,7 @@ let
270294
mkdir -p $out/{nix-support,cfg-files}
271295
mkdir installers
272296
cp -vir ${./installers/dhall} installers/dhall
273-
cp -vir ${./installers/icons} installers/icons
297+
cp -vir ${self.windowsIcons} installers/icons
274298
cp -vir ${./package.json} package.json
275299
chmod -R +w installers
276300
cd installers

installer-clusters.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mainnet selfnode mainnet_flight testnet
1+
mainnet preprod preview shelley_qa selfnode

installers/common/Types.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ data Cluster
5858
| Shelley_QA
5959
| Testnet
6060
| Alonzo_Purple
61+
| Vasil_Dev
62+
| Preprod
63+
| Preview
6164
deriving (Bounded, Enum, Eq, Read, Show)
6265

6366
-- | The wallet backend to include in the installer.
@@ -109,6 +112,9 @@ clusterNetwork Staging = "staging"
109112
clusterNetwork Shelley_QA = "shelley_qa"
110113
clusterNetwork Testnet = "testnet"
111114
clusterNetwork Alonzo_Purple = "alonzo_purple"
115+
clusterNetwork Vasil_Dev = "vasil_dev"
116+
clusterNetwork Preprod = "preprod"
117+
clusterNetwork Preview = "preview"
112118

113119
packageFileName :: OS -> Cluster -> Version -> Backend -> Text -> Maybe BuildJob -> FilePath
114120
packageFileName _os cluster ver backend _backendVer build = fromText name <.> ext

installers/daedalus-installer.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@
88
mkDerivation {
99
pname = "daedalus-installer";
1010
version = "0.1.0.0";
11-
src = ./.;
11+
src = lib.cleanSourceWith {
12+
name = "daedalus-installer-src";
13+
src = ./.;
14+
filter = name: type: (type == "directory" && (
15+
lib.hasSuffix "/common" name
16+
)) || (type == "regular" && (
17+
lib.hasSuffix ".hs" name ||
18+
lib.hasSuffix ".cabal" name ||
19+
lib.hasSuffix "/cabal.project" name
20+
));
21+
};
1222
isLibrary = true;
1323
isExecutable = true;
1424
doCheck = false;

installers/icons/README.md

Lines changed: 1 addition & 11 deletions
-66.1 KB
Binary file not shown.
-1.12 KB
Binary file not shown.
-1.4 KB
Binary file not shown.
-1.54 KB
Binary file not shown.

0 commit comments

Comments
 (0)