Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 635d1c1

Browse files
committed
Merge branch 'try-to-update-nixpkgs' into feature/ddw-691-cardano-launcher-url
2 parents 37f99be + 2478d54 commit 635d1c1

File tree

12 files changed

+35
-70
lines changed

12 files changed

+35
-70
lines changed

cabal.project

Lines changed: 17 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
index-state: 2020-05-15T00:00:00Z
1+
index-state: 2021-10-10T00:00:00Z
22

33
packages:
44
cardano-shell
@@ -28,21 +28,17 @@ constraints: async-timer >= 0.2.0.0
2828
source-repository-package
2929
type: git
3030
location: https://github.com/input-output-hk/cardano-sl-x509
31-
tag: 43a036c5bbe68ca2e9cbe611eab7982e2348fe49
32-
--sha256: 1aw7ns8lv51fjf45k8yzils2j7a6bqzy8hn65kb3z0dn1qsm8x88
31+
tag: 12925934c533b3a6e009b61ede555f8f26bac037
32+
--sha256: 1kma25g8sl6m3pgsihja7fysmv6vjdfc0x7dyky9g5z156sh8z7i
3333

3434
source-repository-package
3535
type: git
3636
location: https://github.com/input-output-hk/cardano-prelude
37-
tag: 316c854d1d3089f480708ad5cd5ecf8a74423ddd
38-
--sha256: 1srbl3jrkmpwypdz0yrx4nmah3qcsr93dp48zx2bamg51c4hcsyj
39-
40-
source-repository-package
41-
type: git
42-
location: https://github.com/input-output-hk/cardano-prelude
43-
tag: 316c854d1d3089f480708ad5cd5ecf8a74423ddd
44-
--sha256: 1srbl3jrkmpwypdz0yrx4nmah3qcsr93dp48zx2bamg51c4hcsyj
45-
subdir: test
37+
tag: c7fc9fba236972c27a55e0f3d34c2758cf616bfc
38+
--sha256: 0sg1hhnifqxfc5n5f9ikbxyrjlg77hynbhsql0h4smqniw29dbwk
39+
subdir:
40+
cardano-prelude
41+
cardano-prelude-test
4642

4743
source-repository-package
4844
type: git
@@ -52,42 +48,16 @@ source-repository-package
5248

5349
source-repository-package
5450
type: git
55-
location: https://github.com/input-output-hk/ouroboros-network
56-
tag: 1361bb92814c65e5964732777fc7f8ec9ebdccfe
57-
--sha256: 1znl9zzw5hswcd09zcvmgq50ppp46nbzjmw67wm4wpnw5lhnlwfy
58-
subdir: Win32-network
59-
60-
source-repository-package
61-
type: git
62-
location: https://github.com/input-output-hk/iohk-monitoring-framework
63-
tag: efa4b5ecd7f0a13124616b12679cd42517cd905a
64-
--sha256: 0h1h5ifl5d7dl3y6fym9pjd6rfrbh5rbyxs0xw5las503pibv2bf
65-
subdir: iohk-monitoring
51+
location: https://github.com/input-output-hk/Win32-network
52+
tag: 3825d3abf75f83f406c1f7161883c438dac7277d
53+
--sha256: 19wahfv726fa3mqajpqdqhnl9ica3xmf68i254q45iyjcpj1psqx
6654

6755
source-repository-package
6856
type: git
6957
location: https://github.com/input-output-hk/iohk-monitoring-framework
70-
tag: efa4b5ecd7f0a13124616b12679cd42517cd905a
71-
--sha256: 0h1h5ifl5d7dl3y6fym9pjd6rfrbh5rbyxs0xw5las503pibv2bf
72-
subdir: contra-tracer
73-
74-
source-repository-package
75-
type: git
76-
location: https://github.com/input-output-hk/iohk-monitoring-framework
77-
tag: efa4b5ecd7f0a13124616b12679cd42517cd905a
78-
--sha256: 0h1h5ifl5d7dl3y6fym9pjd6rfrbh5rbyxs0xw5las503pibv2bf
79-
subdir: tracer-transformers
80-
81-
source-repository-package
82-
type: git
83-
location: https://github.com/input-output-hk/iohk-monitoring-framework
84-
tag: efa4b5ecd7f0a13124616b12679cd42517cd905a
85-
--sha256: 0h1h5ifl5d7dl3y6fym9pjd6rfrbh5rbyxs0xw5las503pibv2bf
86-
subdir: tracer-transformers
87-
88-
source-repository-package
89-
type: git
90-
location: https://github.com/input-output-hk/ouroboros-network
91-
tag: 1361bb92814c65e5964732777fc7f8ec9ebdccfe
92-
--sha256: 1znl9zzw5hswcd09zcvmgq50ppp46nbzjmw67wm4wpnw5lhnlwfy
93-
subdir: Win32-network
58+
tag: 808724ff8a19a33d0ed06f9ef59fbd900b08553c
59+
--sha256: 0298dpl29gxzs9as9ha6y0w18hqwc00ipa3hzkxv7nlfrjjz8hmz
60+
subdir:
61+
iohk-monitoring
62+
contra-tracer
63+
tracer-transformers

cardano-launcher/app/Main.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import Data.Text.Lazy.Builder (fromString, fromText)
1414

1515
import Distribution.System as OS
1616
import System.Environment (setEnv)
17-
import System.Exit (exitWith)
1817
import System.IO.Silently (hSilence)
1918
import System.Process (proc, waitForProcess, withCreateProcess)
2019

@@ -23,7 +22,7 @@ import Formatting.Buildable (Buildable (..))
2322

2423
import Options.Applicative (Parser, ParserInfo, auto, execParser,
2524
fullDesc, header, help, helper, info,
26-
long, metavar, option, optional, progDesc)
25+
long, metavar, option, progDesc)
2726

2827
import Cardano.BM.Setup (withTrace)
2928
import qualified Cardano.BM.Trace as Trace

cardano-launcher/app/Mocks/Daedalus.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
module Main where
44

55
import Cardano.Prelude
6-
import System.Exit (exitWith)
76

87
seconds :: Int
98
seconds = 1000000
@@ -13,4 +12,4 @@ main = do
1312
putTextLn $ "Starting Daedalus"
1413
threadDelay $ 5 * seconds
1514
putText $ "Exiting for update"
16-
exitWith $ ExitFailure 20
15+
exitWith $ ExitFailure 20

cardano-launcher/src/Cardano/Shell/Application.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ checkIfApplicationIsRunning lockFilePath = do
6464
when (not fileExist) $
6565
writeFile lockFilePath ""
6666

67-
lockfileHandle <- openFile lockFilePath ReadMode
67+
lockfileHandle <- openFile lockFilePath ReadWriteMode
6868
isAlreadyRunning <- hTryLock lockfileHandle ExclusiveLock
6969

7070
-- We need to inform the user if the application version is already running.

cardano-launcher/src/Cardano/Shell/Launcher.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module Cardano.Shell.Launcher
2929
import Cardano.Prelude hiding (onException)
3030

3131
import Prelude (Show (..))
32-
import Data.Aeson (FromJSON, ToJSON(toJSON), genericParseJSON, genericToJSON, defaultOptions)
32+
import Data.Aeson (genericParseJSON, genericToJSON, defaultOptions)
3333
import Data.Yaml as Y
3434
import qualified System.Process as Process
3535
import Turtle (system)

cardano-launcher/test/EnvironmentSpec.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module EnvironmentSpec
88
) where
99

1010
import Cardano.Prelude
11-
import Data.Char (isAlphaNum)
1211
import qualified Data.HashMap.Strict as HM
1312
import qualified Data.Vector as V
1413
import qualified Data.Yaml as Y

cardano-launcher/test/LauncherSMSpec.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ module LauncherSMSpec
1818

1919
import Cardano.Prelude
2020

21-
import Data.TreeDiff (ToExpr (..))
22-
2321
import Test.Hspec (Spec, describe, it)
2422

2523
import Test.QuickCheck (Gen, Property, oneof, (===))
@@ -165,7 +163,7 @@ launcherSM = StateMachine
165163
, shrinker = mShrinker
166164
, semantics = mSemantics
167165
, mock = mMock
168-
, distribution = Nothing
166+
, cleanup = const (pure ())
169167
}
170168
where
171169
-- | Let's handle just Ping/Pong for now.

cardano-launcher/test/TemplateSpec.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ module TemplateSpec
99
) where
1010

1111
import Cardano.Prelude
12-
import Data.Char (isAlphaNum)
1312
import System.Environment (lookupEnv, setEnv, unsetEnv)
1413
import System.IO.Error (userError)
1514
import Test.Hspec (Spec)

cardano-shell/test/NodeIPCSMSpec.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ module NodeIPCSMSpec
1818

1919
import Cardano.Prelude
2020

21-
import Data.TreeDiff (ToExpr (..))
22-
2321
import Test.Hspec (Spec, describe, it)
2422

2523
import Test.QuickCheck (Gen, Property, arbitrary, generate, oneof,
@@ -188,7 +186,7 @@ nodeIPCSM serverHandles = StateMachine
188186
, shrinker = mShrinker
189187
, semantics = mSemantics
190188
, mock = mMock
191-
, distribution = Nothing
189+
, cleanup = const (pure ())
192190
}
193191
where
194192
-- | Let's handle just Ping/Pong for now.

default.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
with pkgs; with commonLib;
1818
let
1919

20+
# FIXME: I really don’t know if this ↓ is right… – @michalrus
21+
hpc-coveralls = cardanoShellHaskellPackages.tool "hpc-coveralls" "0.7.0";
22+
2023
haskellPackages = recRecurseIntoAttrs
2124
# the Haskell.nix package set, reduced to local packages.
2225
(selectProjectPackages cardanoShellHaskellPackages);
@@ -26,7 +29,7 @@ let
2629
projectPkgs = selectProjectPackages pkgSet;
2730
projectCoverageReport = pkgSet.projectCoverageReport;
2831
in writeShellScriptBin "uploadCoveralls.sh" ''
29-
${commonLib.hpc-coveralls}/bin/hpc-coveralls all \
32+
${hpc-coveralls}/bin/hpc-coveralls all \
3033
${concatStringsSep "\n " (mapAttrsToList (_: p: "--package-dir .${p.src.origSubDir} \\") projectPkgs)}
3134
--hpc-dir ${projectCoverageReport}/share/hpc/vanilla \
3235
--coverage-mode StrictlyFullLines \
@@ -54,7 +57,7 @@ let
5457
tests = collectChecks haskellPackages;
5558
};
5659

57-
inherit (commonLib) hpc-coveralls;
60+
inherit hpc-coveralls;
5861
uploadCoverallsScript = uploadCoverallsScript cardanoShellHaskellPackages;
5962

6063
shell = import ./shell.nix {

nix/haskell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
, buildPackages
88
, config ? {}
99
# GHC attribute name
10-
, compiler ? config.haskellNix.compiler or "ghc865"
10+
, compiler ? config.haskellNix.compiler or "ghc8107"
1111
# Enable profiling
1212
, profiling ? config.haskellNix.profiling or false
1313
# Enable coverage

nix/sources.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"homepage": "https://input-output-hk.github.io/haskell.nix",
66
"owner": "input-output-hk",
77
"repo": "haskell.nix",
8-
"rev": "48b8674f5f726cfb5083c025d3c53ff01fef009a",
9-
"sha256": "0b90xnxn72kv5qskp3gxfcmql8cqbank7nlp0m6353yhqp6kr5mc",
8+
"rev": "308c937bfc68071d8ab0206b44e0f3dde35a401e",
9+
"sha256": "03hkqrdjbab0m16y3bpmcg4nvrnpajkbaa595v67r77hhqja3nqj",
1010
"type": "tarball",
11-
"url": "https://github.com/input-output-hk/haskell.nix/archive/48b8674f5f726cfb5083c025d3c53ff01fef009a.tar.gz",
11+
"url": "https://github.com/input-output-hk/haskell.nix/archive/4b6ee9767daaf5fc1d5419e07733ab006b95ec93.tar.gz",
1212
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
1313
},
1414
"iohk-nix": {
@@ -17,10 +17,10 @@
1717
"homepage": null,
1818
"owner": "input-output-hk",
1919
"repo": "iohk-nix",
20-
"rev": "f4790863d0d4e3f9018f012ec6575432c7952a48",
21-
"sha256": "0jds3j5fqcwbgpmbddrp9cxia5mxz8kw7sqsw6jcq9bq5mv1x00d",
20+
"rev": "0a0126d8fb1bdc61ce1fd2ef61cf396de800fdad",
21+
"sha256": "09jrhq48h5vwl6vyf4q8d38vlaqmbd00m550rwxz79k90bxb7q6y",
2222
"type": "tarball",
23-
"url": "https://github.com/input-output-hk/iohk-nix/archive/f4790863d0d4e3f9018f012ec6575432c7952a48.tar.gz",
23+
"url": "https://github.com/input-output-hk/iohk-nix/archive/5e667b374153327c7bdfdbfab8ef19b1f27d4aac.tar.gz",
2424
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
2525
},
2626
"nixpkgs-19.03": {

0 commit comments

Comments
 (0)