Skip to content

Commit e9623ec

Browse files
nikolaglumacDaniel Maindisassemblerdanielmain
authored
[DDW-808] Update cardano-launcher and introduce Cardano Node RTS flags (#2735)
* [DDW-808] Bumps cardano-launcher to the latest version * [DDW-808] Updated nix channel and nodejs * use different nixpkgs for nodejs * use pkgs from iohk-nix for default * [DDW-808] upgraded cardano-js * [DDW-808] Upgraded node-sass * [DDW-808] Added electron-chromedriver to the list of duplicated packages * [DDW-808] Back to nodejs 14. Upgraded cardano-launcher * [DDW-808] Using correct node-sass version according to nodejs version * [DDW-808] Adds RTS flags * [DDW-808] Updates CHANGELOG * [DDW-808] Cleanup test switch for RTS flags Co-authored-by: Daniel Main <[email protected]> Co-authored-by: Samuel Leathers <[email protected]> Co-authored-by: Daniel Main <[email protected]>
1 parent 401e4ca commit e9623ec

19 files changed

+183
-573
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
### Chores
2020

21+
- Updated `cardano-launcher` to version `0.20211105.1` and added Cardano Node RTS flags which improve resource usage ([PR 2734](https://github.com/input-output-hk/daedalus/pull/2734))
2122
- Updated README with solution steps for the nix SSL issue ([PR 2727](https://github.com/input-output-hk/daedalus/pull/2727))
2223
- Covered LedgerJS v4.0.0 breaking changes ([PR 2697](https://github.com/input-output-hk/daedalus/pull/2697))
2324
- Added hardware wallet support for all non-public testnets ([PR 2672](https://github.com/input-output-hk/daedalus/pull/2672))

default.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ let
3030
});
3131
};
3232
};
33-
pkgs = localLib.iohkNix.getPkgsDefault { inherit system config; };
33+
pkgs = localLib.iohkNix.pkgsDefault;
34+
pkgsNodeJS = import sources.nixpkgs { inherit system config; };
3435
pkgsNative = localLib.iohkNix.getPkgsDefault {};
3536
sources = localLib.sources;
3637
walletPkgs = import "${sources.cardano-wallet}/nix" {};
@@ -54,8 +55,8 @@ let
5455
cardanoLib = localLib.iohkNix.cardanoLib;
5556
daedalus-bridge = self.bridgeTable.${nodeImplementation};
5657

57-
nodejs = pkgs.nodejs-14_x;
58-
nodePackages = pkgs.nodePackages.override { nodejs = self.nodejs; };
58+
nodejs = pkgsNodeJS.nodejs-14_x;
59+
nodePackages = pkgsNodeJS.nodePackages.override { nodejs = self.nodejs; };
5960
yarnInfo = {
6061
version = "1.22.4";
6162
hash = "1l3sv30g61dcn7ls213prcja2y3dqdi5apq9r7yyick295w25npq";

installers/daedalus-installer.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ mkDerivation, aeson, base, bytestring, containers, directory
22
, filepath, foldl, github, Glob, hspec, lens-aeson, managed
33
, megaparsec, microlens, network-uri, nsis, optional-args
4-
, optparse-applicative, optparse-generic, split, stdenv
4+
, optparse-applicative, optparse-generic, split, lib
55
, system-filepath, temporary, text, turtle, universum, raw-strings-qq
66
, unordered-containers, wreq, yaml, zip-archive
77
}:
@@ -30,5 +30,6 @@ mkDerivation {
3030
system-filepath temporary text turtle universum yaml
3131
];
3232
description = "Daedalus Installer Builder";
33-
license = stdenv.lib.licenses.asl20;
33+
34+
license = lib.licenses.asl20;
3435
}

installers/dhall-haskell.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
, fetchgit, filepath, formatting, haskeline, http-client
55
, http-client-tls, insert-ordered-containers, lens-family-core
66
, memory, mtl, optparse-generic, parsers, prettyprinter
7-
, prettyprinter-ansi-terminal, repline, scientific, stdenv, tasty
7+
, prettyprinter-ansi-terminal, repline, scientific, stdenv, tasty, lib
88
, tasty-hunit, text, text-format, transformers, trifecta, unordered-containers
99
, vector
1010
}:
@@ -35,5 +35,5 @@ mkDerivation {
3535
tasty-hunit text vector text-format
3636
];
3737
description = "A configuration language guaranteed to terminate";
38-
license = stdenv.lib.licenses.bsd3;
38+
license = lib.licenses.bsd3;
3939
}

installers/dhall-json.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ mkDerivation, aeson, aeson-pretty, base, bytestring, dhall
2-
, fetchgit, optparse-generic, stdenv, text, trifecta
2+
, fetchgit, optparse-generic, stdenv, text, trifecta, lib
33
, unordered-containers, yaml
44
}:
55
mkDerivation {
@@ -19,5 +19,5 @@ mkDerivation {
1919
aeson aeson-pretty base bytestring dhall optparse-generic text yaml
2020
];
2121
description = "Compile Dhall to JSON or YAML";
22-
license = stdenv.lib.licenses.bsd3;
22+
license = lib.licenses.bsd3;
2323
}

installers/nix/electron.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ stdenv, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv, libuuid, at-spi2-atk, at_spi2_core, libxshmfence,
1+
{ stdenv, lib, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv, libuuid, at-spi2-atk, at_spi2_core, libxshmfence,
22
libdrm, libxkbcommon, mesa }:
33

44
let
@@ -7,7 +7,7 @@ let
77

88
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
99

10-
meta = with stdenv.lib; {
10+
meta = with lib; {
1111
description = "Cross platform desktop application shell";
1212
homepage = https://github.com/electron/electron;
1313
license = licenses.mit;
@@ -48,15 +48,15 @@ let
4848
4949
patchelf \
5050
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
51-
--set-rpath "${atomEnv.libPath}:${stdenv.lib.makeLibraryPath [ libuuid at-spi2-atk at_spi2_core ]}:$out/lib/electron" \
51+
--set-rpath "${atomEnv.libPath}:${lib.makeLibraryPath [ libuuid at-spi2-atk at_spi2_core ]}:$out/lib/electron" \
5252
$out/lib/electron/electron
5353
5454
wrapProgram $out/lib/electron/electron \
55-
--prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1 \
56-
--prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libdrm ]}/libdrm.so.2 \
57-
--prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libxkbcommon ]}/libxkbcommon.so.0 \
58-
--prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ mesa ]}/libgbm.so.1 \
59-
--prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libxshmfence ]}/libxshmfence.so.1
55+
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1 \
56+
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libdrm ]}/libdrm.so.2 \
57+
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libxkbcommon ]}/libxkbcommon.so.0 \
58+
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ mesa ]}/libgbm.so.1 \
59+
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libxshmfence ]}/libxshmfence.so.1
6060
'';
6161
};
6262

installers/overlays/dhall-json.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ mkDerivation, aeson, aeson-pretty, ansi-terminal, base
22
, bytestring, containers, dhall, exceptions, filepath, libyaml
33
, optparse-applicative, prettyprinter, prettyprinter-ansi-terminal
4-
, scientific, stdenv, tasty, tasty-hunit, text
4+
, scientific, stdenv, tasty, tasty-hunit, text, lib
55
, unordered-containers, vector, yaml
66
}:
77
mkDerivation {
@@ -25,5 +25,5 @@ mkDerivation {
2525
aeson base bytestring dhall tasty tasty-hunit text
2626
];
2727
description = "Convert between Dhall and JSON or YAML";
28-
license = stdenv.lib.licenses.bsd3;
28+
license = lib.licenses.bsd3;
2929
}

installers/overlays/dhall.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
, generic-random, haskeline, http-client, http-client-tls
66
, http-types, lens-family-core, megaparsec, memory, mockery, mtl
77
, network-uri, optparse-applicative, parsers, prettyprinter
8-
, prettyprinter-ansi-terminal, profunctors, QuickCheck
8+
, prettyprinter-ansi-terminal, profunctors, QuickCheck, lib
99
, quickcheck-instances, repline, scientific, semigroups, serialise
1010
, spoon, stdenv, tasty, tasty-expected-failure, tasty-hunit
1111
, tasty-quickcheck, template-haskell, text, th-lift-instances
@@ -40,5 +40,5 @@ mkDerivation {
4040
base bytestring containers directory gauge serialise text
4141
];
4242
description = "A configuration language guaranteed to terminate";
43-
license = stdenv.lib.licenses.bsd3;
43+
license = lib.licenses.bsd3;
4444
}

installers/overlays/nsis.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ mkDerivation, base, directory, fetchFromGitHub, process, stdenv
1+
{ mkDerivation, base, directory, fetchFromGitHub, process, stdenv, lib
22
, transformers, uniplate
33
}:
44
mkDerivation {
@@ -16,5 +16,5 @@ mkDerivation {
1616
];
1717
homepage = "https://github.com/ndmitchell/nsis#readme";
1818
description = "DSL for producing Windows Installer using NSIS";
19-
license = stdenv.lib.licenses.bsd3;
19+
license = lib.licenses.bsd3;
2020
}

installers/overlays/universum.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ mkDerivation, base, bytestring, containers, deepseq, doctest
22
, gauge, ghc-prim, Glob, hashable, hedgehog, microlens
3-
, microlens-mtl, mtl, safe-exceptions, stdenv, stm, tasty
3+
, microlens-mtl, mtl, safe-exceptions, stdenv, lib, stm, tasty
44
, tasty-hedgehog, text, transformers, unordered-containers
55
, utf8-string, vector
66
}:
@@ -22,5 +22,5 @@ mkDerivation {
2222
];
2323
homepage = "https://github.com/serokell/universum";
2424
description = "Custom prelude used in Serokell";
25-
license = stdenv.lib.licenses.mit;
25+
license = lib.licenses.mit;
2626
}

0 commit comments

Comments
 (0)