Skip to content

Commit 358d0ad

Browse files
committed
Merge branch 'develop' into chore/ddw-1220-cardano-node-8.1.1
2 parents 32513a1 + ac43451 commit 358d0ad

File tree

66 files changed

+364
-477
lines changed

Some content is hidden

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

66 files changed

+364
-477
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ steps:
3636
system: x86_64-linux
3737

3838
- label: 'daedalus-x86_64-windows'
39-
command: 'nix </dev/null run --no-accept-flake-config -L .#packages.x86_64-windows.buildkitePipeline'
39+
command: 'nix </dev/null run --no-accept-flake-config -L .#packages.x86_64-linux.buildkitePipeline-x86_64-windows'
4040
agents:
4141
queue: lace
4242
system: x86_64-linux

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,26 @@
22

33
## vNext
44

5+
### Chores
6+
7+
- Updated cardano-node to 8.1.1 (via cardano-wallet) ([PR 3133](https://github.com/input-output-hk/daedalus/pull/3133))
8+
9+
## 5.3.0
10+
511
### Features
612

13+
- Apply Catalyst API improvements ([PR 3136](https://github.com/input-output-hk/daedalus/pull/3136))
714
- Switched to the new Catalyst API ([PR 3129](https://github.com/input-output-hk/daedalus/pull/3129))
15+
- Updated Catalyst links ([PR 3137](https://github.com/input-output-hk/daedalus/pull/3137))
816

917
### Fixes
1018

1119
- Fixed decimals for syncing percentage ([PR 3106](https://github.com/input-output-hk/daedalus/pull/3106))
1220

1321
### Chores
1422

15-
- Updated cardano-node to 8.1.1 (via cardano-wallet) ([PR 3133](https://github.com/input-output-hk/daedalus/pull/3133))
23+
- Switched from Cicero to Hydra ([PR 3135](https://github.com/input-output-hk/daedalus/pull/3135))
24+
- Changed voting reward address to a payment address ([PR 3131](https://github.com/input-output-hk/daedalus/pull/3131))
1625
- Updated @trezor/connect to v9.0.8 ([PR 3127](https://github.com/input-output-hk/daedalus/pull/3127))
1726
- Add members of Cardano Wallet team to the "About Daedalus" screen ([PR 3092](https://github.com/input-output-hk/daedalus/pull/3092))
1827
- Removed Chromatic from project ([PR 3126](https://github.com/input-output-hk/daedalus/pull/3126))

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,25 +230,25 @@ It is possible to build, and run just the Daedalus package, that would be bundle
230230

231231
Build:
232232

233-
nix build -L .#package.mainnet
233+
nix build -L .#daedalus-mainnet
234234

235235
Run:
236236

237-
nix run -L .#package.mainnet
237+
nix run -L .#daedalus-mainnet
238238

239239
### macOS (Intel, and Apple Silicon)
240240

241241
Build:
242242

243-
nix build -L .#package.mainnet
243+
nix build -L .#daedalus-mainnet
244244

245245
Run:
246246

247-
nix run -L .#package.mainnet
247+
nix run -L .#daedalus-mainnet
248248

249249
If you want to run an Intel build from an Apple Silicon machine:
250250

251-
nix run -L .#packages.x86_64-darwin.package.mainnet
251+
nix run -L .#packages.x86_64-darwin.daedalus-mainnet
252252

253253
## Installers
254254

@@ -260,26 +260,26 @@ These commands require [Nix](https://nixos.org/nix/), optionally configured with
260260

261261
Run this from a Linux machine:
262262

263-
nix build -L .#installer.mainnet
263+
nix build -L .#installer-mainnet
264264

265265
The result can be found at `result/daedalus-*.bin`.
266266

267267
### Windows
268268

269269
Run this from a Linux machine (cross-building):
270270

271-
nix build -L .#packages.x86_64-windows.installer.mainnet
271+
nix build -L .#installer-mainnet-x86_64-windows
272272

273273
The result will can be found at `result/daedalus-*.exe`.
274274

275275
### macOS (Intel, and Apple Silicon)
276276

277277
Run this from a macOS machine:
278278

279-
nix build -L .#installer.mainnet
279+
nix build -L .#installer-mainnet
280280

281281
If you want to build an Intel version from an Apple Silicon machine:
282282

283-
nix build -L .#packages.x86_64-darwin.installer.mainnet
283+
nix build -L .#packages.x86_64-darwin.installer-mainnet
284284

285285
The result can be found at `result/daedalus-*.pkg`.

flake.nix

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,47 @@
1616
};
1717

1818
outputs = inputs: let
19-
sourceLib = import ./nix/source-lib.nix { inherit inputs; };
20-
inherit (sourceLib) forEachCluster;
19+
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-darwin"];
20+
inherit (inputs.nixpkgs) lib;
2121
in {
22+
internal = import ./nix/internal.nix { inherit inputs; };
2223

23-
packages = __mapAttrs (targetSystem: definition: rec {
24-
internal = forEachCluster (cluster: import definition { inherit inputs cluster targetSystem; });
25-
package = __mapAttrs (_: a: a.package) internal;
26-
installer = __mapAttrs (_: a: a.unsignedInstaller) internal;
27-
default = package.mainnet;
28-
makeSignedInstaller = __mapAttrs (_: a: a.makeSignedInstaller) internal;
29-
buildkitePipeline = import ./nix/buildkite-pipeline.nix { inherit inputs targetSystem; };
30-
}) {
31-
x86_64-linux = ./nix/x86_64-linux.nix;
32-
x86_64-windows = ./nix/x86_64-windows.nix;
33-
x86_64-darwin = ./nix/any-darwin.nix;
34-
aarch64-darwin = ./nix/any-darwin.nix;
35-
};
24+
packages = lib.genAttrs supportedSystems (buildSystem:
25+
import ./nix/packages.nix { inherit inputs buildSystem; }
26+
);
3627

37-
devShells = sourceLib.forEach [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ] (system:
38-
let all = forEachCluster (cluster: import ./nix/old-shell.nix { inherit inputs system cluster; });
28+
devShells = lib.genAttrs supportedSystems (
29+
system: let
30+
all = lib.genAttrs inputs.self.internal.installerClusters (
31+
cluster: import ./nix/internal/old-shell.nix { inherit inputs system cluster; }
32+
);
3933
in all // { default = all.mainnet; }
4034
);
4135

4236
# Compatibility with older Nix:
4337
defaultPackage = __mapAttrs (_: a: a.default) inputs.self.outputs.packages;
4438
devShell = __mapAttrs (_: a: a.default) inputs.self.outputs.devShells;
4539

46-
}
47-
// (import ./nix/cicero.nix {inherit inputs;});
40+
hydraJobs = {
41+
installer = lib.genAttrs (supportedSystems ++ ["x86_64-windows"]) (
42+
targetSystem: lib.genAttrs inputs.self.internal.installerClusters (
43+
cluster: inputs.self.internal.${targetSystem}.${cluster}.unsignedInstaller
44+
)
45+
);
46+
devshell = lib.genAttrs supportedSystems (system: inputs.self.devShells.${system}.default);
47+
required = inputs.nixpkgs.legacyPackages.x86_64-linux.releaseTools.aggregate {
48+
name = "github-required";
49+
meta.description = "All jobs required to pass CI";
50+
constituents =
51+
lib.collect lib.isDerivation inputs.self.hydraJobs.installer
52+
++ lib.collect lib.isDerivation inputs.self.hydraJobs.devshell;
53+
};
54+
};
55+
};
4856

49-
# --- Flake Local Nix Configuration ----------------------------
5057
nixConfig = {
5158
extra-substituters = ["https://cache.iog.io"];
5259
extra-trusted-public-keys = ["hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="];
5360
allow-import-from-derivation = "true";
5461
};
55-
# --------------------------------------------------------------
5662
}

installer-clusters-available.cfg

Lines changed: 0 additions & 1 deletion
This file was deleted.

installers/common/WindowsInstaller.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ writeInstallerNSIS outName (Version fullVersion') InstallerConfig{installDirecto
209209
iff_ (not_ (lockfileDeleted)) $ do
210210
unsafeInject $ T.unpack $ "Abort \"" <> installDirectory <> " $(AlreadyRunning)\""
211211

212+
iff_ (fileExists "$INSTDIR") $ do
213+
detailPrint "Removing previously installed version"
214+
rmdir [Recursive] "$INSTDIR"
215+
212216
iff_ (fileExists "$APPDATA\\$InstallDir\\Wallet-1.0\\open\\*.*") $
213217
rmdir [] "$APPDATA\\$InstallDir\\Wallet-1.0\\open"
214218
case oBackend of

nix/cicero.nix

Lines changed: 0 additions & 16 deletions
This file was deleted.

nix/internal.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{ inputs }:
2+
3+
let
4+
inherit (inputs.nixpkgs) lib;
5+
inherit (import ./internal/source-lib.nix { inherit inputs; }) installerClusters;
6+
in
7+
8+
(__mapAttrs (targetSystem: src: lib.genAttrs installerClusters (cluster: import src {
9+
inherit inputs targetSystem cluster;
10+
})) {
11+
x86_64-linux = ./internal/x86_64-linux.nix;
12+
x86_64-windows = ./internal/x86_64-windows.nix;
13+
x86_64-darwin = ./internal/any-darwin.nix;
14+
aarch64-darwin = ./internal/any-darwin.nix;
15+
}) // { inherit installerClusters; }

nix/any-darwin.nix renamed to nix/internal/any-darwin.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ in rec {
192192
installPhase = ''
193193
mkdir -p $out
194194
cp $(tail -n 1 make-installer.log) $out/
195+
196+
# Make it downloadable from Hydra:
197+
mkdir -p $out/nix-support
198+
echo "file binary-dist \"$(echo $out/*.pkg)\"" >$out/nix-support/hydra-build-products
195199
'';
196200
};
197201

@@ -249,7 +253,7 @@ in rec {
249253
--install-location /Applications \
250254
${lib.escapeShellArg (installerName + ".phase1.pkg")}
251255
rm -r "$workDir/$appName"
252-
/usr/bin/productbuild --product ${../installers/data/plist} \
256+
/usr/bin/productbuild --product ${../../installers/data/plist} \
253257
--package *.phase1.pkg \
254258
${lib.escapeShellArg (installerName + ".phase2.pkg")}
255259
rm *.phase1.pkg

nix/buildkite-pipeline.nix renamed to nix/internal/buildkite-pipeline.nix

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@
22

33
let
44

5-
inherit (inputs.self.outputs.packages.${targetSystem}.internal.mainnet.oldCode.pkgs)
6-
lib writeShellScriptBin;
7-
inherit (import ./source-lib.nix { inherit inputs; }) installerClusters;
5+
buildSystem = {
6+
x86_64-windows = "x86_64-linux";
7+
}.${targetSystem} or targetSystem;
8+
9+
targetSuffix = if buildSystem == targetSystem then "" else "-${targetSystem}";
10+
11+
pkgs = inputs.nixpkgs.legacyPackages.${buildSystem};
12+
13+
inherit (pkgs) lib;
14+
inherit (inputs.self.internal) installerClusters;
815

916
in
1017

11-
writeShellScriptBin "buildkite-pipeline" ''
18+
pkgs.writeShellScriptBin "buildkite-pipeline" ''
1219
set -o errexit
1320
set -o pipefail
1421
@@ -61,15 +68,15 @@ writeShellScriptBin "buildkite-pipeline" ''
6168
6269
(
6370
set -x
64-
nix build --no-accept-flake-config -L --out-link "$result" .#packages.${targetSystem}.installer.${cluster}
71+
nix build --no-accept-flake-config -L --out-link "$result" .#packages.${buildSystem}.installer-${cluster}${targetSuffix}
6572
) 2>&1 | cat
6673
6774
echo "Built: $(readlink "$result")"
6875
6976
if [ -n "''${BUILDKITE_JOB_ID:-}" ]; then
7077
${if targetSystem == "x86_64-darwin" || targetSystem == "aarch64-darwin" then ''
7178
echo '~~~ Signing installer for cluster ‘${cluster}’'
72-
nix run -L .#packages.${targetSystem}.makeSignedInstaller.${cluster} | tee make-installer.log
79+
nix run -L .#packages.${buildSystem}.makeSignedInstaller-${cluster}${targetSuffix} | tee make-installer.log
7380
rm "$result"
7481
mkdir -p "$result"
7582
mv $(tail -n 1 make-installer.log) "$result"/

0 commit comments

Comments
 (0)