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

Commit 09db97a

Browse files
committed
[DEVOPS-1120] Update iohk-nix revision
1 parent 46d5008 commit 09db97a

File tree

4 files changed

+48
-77
lines changed

4 files changed

+48
-77
lines changed

default.nix

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@
66
}:
77

88
let
9-
haskellPackages = import ./nix/pkgs.nix {
10-
inherit pkgs;
11-
src = iohkLib.cleanSourceHaskell ./.;
9+
haskell = iohkLib.nix-tools.haskell { inherit pkgs; };
10+
11+
pkgSet = haskell.mkStackPkgSet {
12+
stack-pkgs = import ./nix/pkgs.nix;
13+
pkg-def-extras = [];
14+
modules = [ {
15+
packages.cardano-shell.src = iohkLib.cleanSourceHaskell ./.;
16+
} ];
1217
};
18+
haskellPackages = pkgSet.config.hsPkgs;
1319

1420
in {
15-
inherit haskellPackages;
21+
inherit haskellPackages iohkLib;
1622

1723
inherit (haskellPackages.cardano-shell.components)
18-
benchmarks exes library tests;
24+
all benchmarks exes library tests;
1925
}

nix/iohk-nix.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"url": "https://github.com/input-output-hk/iohk-nix",
3-
"rev": "42dccd89930475bf8b12c3e7dfda10abc4651478",
4-
"date": "2019-02-01T09:01:21+08:00",
5-
"sha256": "17617k8vmmwppkrfzd08npkl3yyjrb7qzdyhshibnhm85g5jw3dr",
3+
"rev": "059b42f187e8e185789a34aa7bbb58f7355ee670",
4+
"date": "2019-03-21T17:16:23+01:00",
5+
"sha256": "1av7sq79g73w9ncrad5mf188mh78vgsv235rc06jx9y2ghsaah1l",
66
"fetchSubmodules": false
77
}

nix/pkgs.nix

Lines changed: 32 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,32 @@
1-
{ args ? { config = import ./config.nix; }
2-
, pkgs ? import <nixpkgs> { inherit args; }
3-
, src ? ../.
4-
}:
5-
let
6-
overrideWith = override: default:
7-
let
8-
try = builtins.tryEval (builtins.findFile builtins.nixPath override);
9-
in if try.success then
10-
builtins.trace "using search host <${override}>" try.value
11-
else
12-
default;
13-
in
14-
let
15-
# all packages from hackage as nix expressions
16-
hackage = import (overrideWith "hackage"
17-
(pkgs.fetchFromGitHub { owner = "input-output-hk";
18-
repo = "hackage.nix";
19-
rev = "5223a45e08b1b0d738fdd292b39e49f39f21536f";
20-
sha256 = "09r662kn2qs444fmqni9jamaxnrk9jrg6whqmxbwhfgd5vy3yynq";
21-
name = "hackage-exprs-source"; }))
22-
;
23-
# a different haskell infrastructure
24-
haskell = import (overrideWith "haskell"
25-
(pkgs.fetchFromGitHub { owner = "input-output-hk";
26-
repo = "haskell.nix";
27-
rev = "34511726b7b43a8a22f8026b4e9f9672e57b2cd6";
28-
sha256 = "01zm6337b1zcc42s22bpb21xhmhhhgnv0ds3r0p8mc1sb62l0zwg";
29-
name = "haskell-lib-source"; }))
30-
hackage;
31-
32-
# the set of all stackage snapshots
33-
stackage = import (overrideWith "stackage"
34-
(pkgs.fetchFromGitHub { owner = "input-output-hk";
35-
repo = "stackage.nix";
36-
rev = "ee2b3a71ce8eca1a40eee8a928644dd9912218fe";
37-
sha256 = "1463d8b3cfsw0xwl9ln8kylm98bp4c518kql4ydw2ggdvihyh20v";
38-
name = "stackage-snapshot-source"; }))
39-
;
40-
41-
# our packages
42-
stack-pkgs = import ./.stack-pkgs.nix;
43-
44-
# The compiler referenced in the stack config
45-
compiler = (stack-pkgs.overlay hackage).compiler.nix-name;
46-
47-
# Build the packageset with module support.
48-
# We can essentially override anything in the modules
49-
# section.
50-
#
51-
# packages.cbors.patches = [ ./one.patch ];
52-
# packages.cbors.flags.optimize-gmp = false;
53-
#
54-
pkgSet = haskell.mkPkgSet {
55-
inherit pkgs;
56-
pkg-def = stackage.${stack-pkgs.resolver};
57-
pkg-def-overlays = [
58-
stack-pkgs.overlay
59-
];
60-
modules = [
61-
haskell.ghcHackagePatches.${compiler}
62-
63-
{ packages.cardano-wallet.src = pkgs.lib.mkForce src; }
64-
];
65-
};
66-
67-
packages = pkgSet.config.hsPkgs // { _config = pkgSet.config; };
68-
69-
in packages
1+
{
2+
extras = hackage:
3+
{
4+
packages = {
5+
"base58-bytestring" = (((hackage.base58-bytestring)."0.1.0").revisions).default;
6+
"half" = (((hackage.half)."0.2.2.3").revisions).default;
7+
"micro-recursion-schemes" = (((hackage.micro-recursion-schemes)."5.0.2.2").revisions).default;
8+
"streaming-binary" = (((hackage.streaming-binary)."0.3.0.1").revisions).default;
9+
"pretty-show" = (((hackage.pretty-show)."1.8.2").revisions).default;
10+
"katip" = (((hackage.katip)."0.7.0.0").revisions)."4b30d0643e18d01a3fd264d3d75921b49b2f464336a52fa46fa049107ebbfe04";
11+
"time-units" = (((hackage.time-units)."1.0.0").revisions)."27cf54091c4a0ca73d504fc11d5c31ab4041d17404fe3499945e2055697746c1";
12+
"ekg" = (((hackage.ekg)."0.4.0.15").revisions)."f52d7c00654d72d2ab988255f30adba95a52484ac310bab9c136c64732e69f4b";
13+
"ekg-json" = (((hackage.ekg-json)."0.1.0.6").revisions)."4ff2e9cac213a5868ae8b4a7c72a16a9a76fac14d944ae819b3d838a9725569b";
14+
} // {
15+
cardano-shell = ./cardano-shell.nix;
16+
cardano-prelude = ./cardano-prelude.nix;
17+
cardano-prelude-test = ./cardano-prelude-test.nix;
18+
contra-tracer = ./contra-tracer.nix;
19+
iohk-monitoring = ./iohk-monitoring.nix;
20+
cardano-sl-x509 = ./cardano-sl-x509.nix;
21+
cborg = ./.stack.nix/cborg.nix;
22+
cardano-crypto = ./.stack.nix/cardano-crypto.nix;
23+
plutus-prototype = ./.stack.nix/plutus-prototype.nix;
24+
hedgehog = ./.stack.nix/hedgehog.nix;
25+
canonical-json = ./.stack.nix/canonical-json.nix;
26+
};
27+
compiler.version = "8.6.3";
28+
compiler.nix-name = "ghc863";
29+
};
30+
resolver = "lts-13.4";
31+
compiler = "ghc-8.6.3";
32+
}

shell.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
let
22
hsPkgs = import ./default.nix {};
33
mainShell = hsPkgs.haskellPackages.cardano-shell.components.all;
4+
5+
# fixme: get shc from iohk-nix
46
pkgs = import (import ./nixpkgs.nix) { config = import ./config.nix; };
57
runCoveralls = pkgs.stdenv.mkDerivation {
68
name = "run-coveralls";

0 commit comments

Comments
 (0)