Skip to content

Commit 8ea45b3

Browse files
committed
[DDW-1189] Fix the Windows build
1 parent 123fad9 commit 8ea45b3

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

default.nix

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,13 @@ let
3333
};
3434
pkgs = import sources.nixpkgs { inherit system config; };
3535
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-
patch -p1 -i ${./nix/cardano-wallet--expose-windowsPackages.patch}
45-
'';
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+
'';
4643
};
4744
haskell-nix = walletFlake.inputs.haskellNix.legacyPackages.${system}.haskell-nix;
4845
flake-compat = import sources.flake-compat;

installers/common/WindowsInstaller.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ writeInstallerNSIS outName (Version fullVersion') InstallerConfig{installDirecto
226226
file [] "genesis-shelley.json"
227227
file [] "genesis-alonzo.json"
228228
file [] "libsodium-23.dll"
229-
file [] "libsecp256k1-0.dll"
229+
file [] "libsecp256k1-1.dll"
230230
when (clusterName == Selfnode) $ do
231231
file [] "signing.key"
232232
file [] "delegation.cert"

0 commit comments

Comments
 (0)