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

Commit 5d0a227

Browse files
iohk-bors[bot]deepfireaviethdisassembler
authored
Merge #4252
4252: Mainnet CI prerequisites, round II (final) r=disassembler a=deepfire 1. `iohk-nix` bumped to version compatible with latest `cardano-byron-proxy` 1. `network-transport-tcp` bumped to version which fixes IntersectMBO/cardano-node#296 1. Convenience shells in some component dirs. Co-authored-by: Kosyrev Serge <[email protected]> Co-authored-by: Alexander Vieth <[email protected]> Co-authored-by: Samuel Leathers <[email protected]>
2 parents c63554b + d0cc2e6 commit 5d0a227

File tree

14 files changed

+241
-183
lines changed

14 files changed

+241
-183
lines changed

crypto/shell.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
let
2+
self = import ../. {};
3+
in (self.nix-tools.shellFor {
4+
name = "cardano-sl-crypto";
5+
packages = ps: [ ps.cardano-sl-crypto ps.cabal-install ];
6+
})

lib.nix

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
11
let
2-
# Allow overriding pinned nixpkgs for debugging purposes via cardano_pkgs
3-
# Imports the iohk-nix library.
4-
# The version can be overridden for debugging purposes by setting
5-
# NIX_PATH=iohk_nix=/path/to/iohk-nix
6-
iohkNix = import (
7-
let try = builtins.tryEval <iohk_nix>;
8-
in if try.success
9-
then builtins.trace "using host <iohk_nix>" try.value
10-
else
11-
let
12-
spec = builtins.fromJSON (builtins.readFile ./nix/iohk-nix-src.json);
13-
in builtins.fetchTarball {
14-
url = "${spec.url}/archive/${spec.rev}.tar.gz";
15-
inherit (spec) sha256;
16-
}) {};
17-
# Gets the value of an environment variable, with a default if it's
18-
# unset or empty.
2+
sources = import ./nix/sources.nix;
3+
pkgs' = import sources.nixpkgs {};
4+
haskellNixJson = let
5+
src = sources."haskell.nix";
6+
in __toJSON {
7+
inherit (sources."haskell.nix") rev sha256;
8+
url = "https://github.com/${src.owner}/${src.repo}";
9+
};
10+
iohkNix = import sources.iohk-nix { haskellNixJsonOverride = pkgs'.writeText "haskell-nix.json" haskellNixJson; };
11+
pkgs = iohkNix.pkgs;
12+
lib = pkgs.lib;
13+
niv = (import sources.niv {}).niv;
1914
maybeEnv = env: default:
2015
let
2116
result = builtins.getEnv env;
2217
in if result != ""
2318
then result
2419
else default;
2520

26-
pkgs = iohkNix.pkgs;
27-
lib = pkgs.lib;
2821
environments = iohkNix.cardanoLib.environments // {
2922
demo = {
3023
confKey = "dev";
@@ -36,7 +29,7 @@ let
3629
(name: env: f (env // { inherit name; }))
3730
environments;
3831
in lib // iohkNix.cardanoLib // iohkNix // {
39-
inherit environments forEnvironments;
32+
inherit environments forEnvironments niv iohkNix;
4033
utf8LocaleSetting = ''
4134
export LC_ALL=en_GB.UTF-8
4235
export LANG=en_GB.UTF-8

networking/cardano-sl-networking.cabal

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ flag benchmarks
1717
Library
1818
exposed-modules: Network.QDisc.Fair
1919

20-
Network.Discovery.Abstract
21-
2220
Network.Broadcast.OutboundQueue
2321
Network.Broadcast.OutboundQueue.Types
2422
Network.Broadcast.OutboundQueue.ConcurrentMultiQueue

networking/src/Network/Discovery/Abstract.hs

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

networking/src/Network/Discovery/Transport/InMemory.hs

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

nix/.stack.nix/default.nix

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/.stack.nix/network-transport-inmemory.nix

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

nix/.stack.nix/network-transport-tcp.nix

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/sources.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"gitignore": {
3+
"branch": "master",
4+
"description": "Nix function for filtering local git sources",
5+
"homepage": "",
6+
"owner": "hercules-ci",
7+
"repo": "gitignore",
8+
"rev": "f9e996052b5af4032fe6150bba4a6fe4f7b9d698",
9+
"sha256": "0jrh5ghisaqdd0vldbywags20m2cxpkbbk5jjjmwaw0gr8nhsafv",
10+
"type": "tarball",
11+
"url": "https://github.com/hercules-ci/gitignore/archive/f9e996052b5af4032fe6150bba4a6fe4f7b9d698.tar.gz",
12+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
13+
},
14+
"haskell.nix": {
15+
"branch": "master",
16+
"description": "Alternative Haskell Infrastructure for Nixpkgs",
17+
"homepage": "https://input-output-hk.github.io/haskell.nix",
18+
"owner": "input-output-hk",
19+
"repo": "haskell.nix",
20+
"rev": "3ae2303b14bdebd00437b0e995af2d0eb21abafe",
21+
"sha256": "0dk6541kwfyc5sp5h1vfk6zl4ghln4i2zqkaijbjwv8bnixnm6wl",
22+
"type": "tarball",
23+
"url": "https://github.com/input-output-hk/haskell.nix/archive/3ae2303b14bdebd00437b0e995af2d0eb21abafe.tar.gz",
24+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
25+
},
26+
"iohk-nix": {
27+
"branch": "master",
28+
"description": "nix scripts shared across projects",
29+
"homepage": null,
30+
"owner": "input-output-hk",
31+
"repo": "iohk-nix",
32+
"rev": "f854c957a65295639d2062867552b65c7dc227a6",
33+
"sha256": "1jl07ng2nx6lgj9rrqzl242r263505llzzxb592fn81h0dq6jx1r",
34+
"type": "tarball",
35+
"url": "https://github.com/input-output-hk/iohk-nix/archive/f854c957a65295639d2062867552b65c7dc227a6.tar.gz",
36+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
37+
},
38+
"niv": {
39+
"branch": "iohk",
40+
"description": "Easy dependency management for Nix projects",
41+
"homepage": "https://github.com/nmattia/niv",
42+
"owner": "input-output-hk",
43+
"repo": "niv",
44+
"rev": "c25268460b72cea5b7294354ab019997530a6f3d",
45+
"sha256": "1fgq1nkycm54f431h6wflh6rr7xsq3q2fq9drbgra2fnrsyn65ll",
46+
"type": "tarball",
47+
"url": "https://github.com/input-output-hk/niv/archive/c25268460b72cea5b7294354ab019997530a6f3d.tar.gz",
48+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
49+
},
50+
"nixpkgs": {
51+
"branch": "iohk-19.03",
52+
"description": "Nix Packages collection",
53+
"homepage": null,
54+
"owner": "input-output-hk",
55+
"repo": "nixpkgs",
56+
"rev": "5bd4c4ea6804b54683ef2b802d970ae473e1b658",
57+
"sha256": "12gah6y1lkkgvvdgswyzsqyvxvsvljn61vpy606sy37yfgkc1a63",
58+
"type": "tarball",
59+
"url": "https://github.com/input-output-hk/nixpkgs/archive/5bd4c4ea6804b54683ef2b802d970ae473e1b658.tar.gz",
60+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
61+
}
62+
}

0 commit comments

Comments
 (0)