-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
316 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ system ? builtins.currentSystem | ||
, crossSystem ? null | ||
, config ? {} | ||
, sourcesOverride ? {} | ||
}: | ||
let | ||
# use default stable nixpkgs from iohk-nix instead of our own: | ||
sources = removeAttrs (import ./sources.nix) [ "nixpkgs" ] | ||
// sourcesOverride; | ||
|
||
# for inclusion in pkgs: | ||
nixpkgsOverlays = [ | ||
(pkgs: _: with pkgs; { | ||
|
||
# mix of pkgs.lib with iohk-nix utils and our own: | ||
commonLib = lib // iohkNix // iohkNix.cardanoLib // | ||
import ./util.nix { inherit haskell-nix; }; | ||
|
||
svcLib = import ./svclib.nix { inherit pkgs; }; | ||
}) | ||
# Our haskell-nix-ified cabal project: | ||
(import ./pkgs.nix) | ||
]; | ||
|
||
# IOHK pkgs that include haskell-nix overlays, using our sources as override: | ||
in (import sources.iohk-nix { | ||
inherit system crossSystem config nixpkgsOverlays; | ||
sourcesOverride = sources; | ||
}).pkgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,23 @@ | ||
{ pkgs ? (import <nixpkgs> {}) | ||
, commonLib | ||
{ pkgs | ||
, supportedSystems ? [ "x86_64-linux" ] | ||
, interactive ? false | ||
}: | ||
|
||
with pkgs; | ||
with pkgs.lib; | ||
with pkgs.commonLib; | ||
|
||
let | ||
forAllSystems = genAttrs supportedSystems; | ||
importTest = fn: args: system: let | ||
imported = import fn; | ||
test = import (pkgs.path + "/nixos/tests/make-test.nix") imported; | ||
in test ({ | ||
inherit system; | ||
inherit pkgs system config; | ||
} // args); | ||
callTest = fn: args: forAllSystems (system: hydraJob (importTest fn args system)); | ||
in rec { | ||
# only tests that port is open since the test can't access network to actually sync | ||
# cardanoNodeEdge = callTest ./cardano-node-edge.nix { inherit commonLib; }; | ||
# cardanoNodeEdge = callTest ./cardano-node-edge.nix {}; | ||
|
||
# Subsumes what cardanoNodeEdge does | ||
chairmansCluster = callTest ./chairmans-cluster.nix { | ||
inherit commonLib interactive; | ||
}; | ||
chairmansCluster = callTest ./chairmans-cluster.nix {}; | ||
} |
Oops, something went wrong.