Skip to content

Commit 57e284d

Browse files
authored
Merge pull request #3050 from input-output-hk/chore/ddw-1158-remove-unused-dhall-code
[DDW-1158] Remove unused Dhall code
2 parents dffbf70 + 9eaa1e2 commit 57e284d

24 files changed

+0
-401
lines changed

default.nix

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ let
5858
nodePkgs = import "${sources.cardano-node}/nix" {};
5959
shellPkgs = (import "${sources.cardano-shell}/nix") {};
6060
inherit (pkgs.lib) optionalString optional concatStringsSep;
61-
inherit (pkgs) writeTextFile;
6261
crossSystem = lib: (crossSystemTable lib).${target} or null;
6362
# TODO, nsis can't cross-compile with the nixpkgs daedalus currently uses
6463
nsisNixPkgs = import localLib.sources.nixpkgs-nsis {};
@@ -296,7 +295,6 @@ let
296295
297296
mkdir -p $out/{nix-support,cfg-files}
298297
mkdir installers
299-
cp -vir ${./installers/dhall} installers/dhall
300298
cp -vir ${self.windowsIcons} installers/icons
301299
cp -vir ${./package.json} package.json
302300
chmod -R +w installers
@@ -452,7 +450,6 @@ let
452450
}).installerBundle;
453451
wrappedBundle = let
454452
version = (builtins.fromJSON (builtins.readFile ./package.json)).version;
455-
backend = "cardano-wallet-${nodeImplementation}";
456453
suffix = if buildNum == null then "" else "-${toString buildNum}";
457454
fn = "daedalus-${version}-${self.linuxClusterBinName}${suffix}-x86_64-linux.bin";
458455
in pkgs.runCommand fn {} ''

installers/README.md

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,6 @@ This folder provides a way to create Daedalus installers for OSX/Linux/Windows.
44

55
Best way to see how to build an installer is to reproduce `../.buildkite/pipeline.yml`
66

7-
## Generation of runtime configuration files
8-
9-
The run-time configuration files of the Daedalus wallet are generated during the
10-
installer build, and are governed by configuration files written in the Dhall
11-
configuration language, which are factored per OS and target cluster:
12-
13-
- https://github.com/input-output-hk/daedalus/tree/develop/installers/dhall
14-
15-
The Dhall expressions that comprise the runtime configuration are thus composed from:
16-
- `launcher.dhall` -- top level expression defining the launcher configuration YAML file
17-
- `topology.dhall` -- top level expression defining the wallet topology YAML file
18-
- `{linux64,macos64,win64}.dhall`
19-
- `{mainnet,staging,testnet}.dhall`
20-
21-
The set of clusters (currently `mainnet` and `staging`) that the build scripts
22-
(`scripts/build-installer-*`) will build installers for is enumerated in
23-
https://github.com/input-output-hk/daedalus/blob/develop/installer-clusters.cfg
24-
25-
### Validating the Dhall configuration files
26-
27-
The entire set of configuration files can be validated by typechecking all
28-
possible combinations:
29-
30-
$ cd installers
31-
$ ghci Config.hs
32-
GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help
33-
Loaded GHCi configuration from /home/deepfire/.ghci
34-
[1 of 2] Compiling Types ( Types.hs, interpreted )
35-
[2 of 2] Compiling Config ( Config.hs, interpreted )
36-
Ok, modules loaded: Config, Types.
37-
*Config> generateAllConfigs "./dhall"
38-
39-
..which will be silent if everything is well, and will otherwise provide
40-
a detailed explanation of what is wrong, and where.
41-
427
## Certificate import on MacOS X
438

449
Before signing the Mac installer, the keychain needs to be set up. Do this by running:

installers/Spec.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ makeTestInstallersDir = do
7777
liftIO $ writeTextFile (src </> "package.json") "{ \"version\": \"0.4.2\" }"
7878
let installersDir = src </> "installers"
7979
mkdir installersDir
80-
cptree "dhall" (installersDir </> "dhall")
8180
mktree (installersDir </> "data/scripts")
8281
liftIO $ writeTextFile (installersDir </> "data/scripts/dockutil") "fake dock util"
8382
pure installersDir

installers/common/Config.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,5 @@ backendOptionParser = cardano
9999
cardano = Cardano <$> optPath "cardano" 'S' "Use Cardano backend with given Daedalus bridge path"
100100

101101
-- | Render a FilePath with POSIX-style forward slashes, which is the
102-
-- Dhall syntax.
103102
dfp :: Format r (FilePath -> r)
104103
dfp = makeFormat (\fpath -> either id id (FP.toText FP.posix fpath))

installers/dhall-haskell.nix

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

installers/dhall-json.nix

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

installers/dhall/cluster.type

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

installers/dhall/demo.dhall

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

installers/dhall/installer.dhall

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

installers/dhall/launcher.dhall

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

0 commit comments

Comments
 (0)