View on GitHub
File Changes
steps:
-
  - label: 'check-hydra'
-
    command: 'ci/check-hydra.sh'
+
  - label: 'hydra-eval-errors'
+
    command: 'nix-build ./nix -A iohkNix.hydraEvalErrors && ./result/bin/hydra-eval-errors.py'
    agents:
      system: x86_64-linux
-
  - label: 'stack2nix'
-
    command: 'ci/check-stack2nix.sh'
+

                      
+
  - label: 'stack rebuild'
+
    env:
+
      STACK_ROOT: "/build/ouroroboros-network.stack"
+
    command:
+
      - "rm -rf /build/ouroroboros-network"
+
      - "cp -R . /build/ouroroboros-network"
+
      - "cd /build/ouroroboros-network"
+
      - "nix-build scripts/buildkite -o stack-rebuild"
+
      - "./stack-rebuild"
+
    branches: master
    agents:
      system: x86_64-linux
-
  - label: 'dependencies-in-master'
-
    command: 'ci/check-dependencies-merged-in-master.sh'
+

                      
+
  - label: 'stack-cabal-sync'
+
    command: 'nix-shell ./nix -A iohkNix.stack-cabal-sync-shell --run scripts/buildkite/stack-cabal-sync.sh'
+
    agents:
+
      system: x86_64-linux
+

                      
+
  - label: 'check-cabal-project'
+
    command: 'nix-build ./nix -A iohkNix.checkCabalProject -o check-cabal-project.sh && ./check-cabal-project.sh'
    agents:
      system: x86_64-linux
m
+7/-7
# Ouroboros-Network

                      
* io-sim - `IOSim` simulator monad which supports asynchronous exceptions,
-
  `STM` transactions and `async` interface, timers. 
+
  `STM` transactions and `async` interface, timers.
* io-sim-classes - type classes, all of them have instance for both `IOSim` and
  `IO`.
* `typed-protocols` - session type framework with support of [protocol pipelining](https://en.wikipedia.org/wiki/Protocol_pipelining)
```
or with `nix`
```
-
nix-build -A nix-tools.tests.ouroboros-network
+
nix-build -A haskellPackages.typed-protocols.checks
```
### IOSim test suite
```
cabal new-run pkg:io-sim:tests
```
or with `nix`
```
-
nix-build -A nix-tools.tests.io-sim
+
nix-build -A haskellPackages.io-sim.checks
```
### Ouroboros-Network test suite
```
cabal new-run pkg:ouroboros-network:tests
```
or with `nix`
```
-
nix-build -A nix-tools.tests.ouroboros-network
+
nix-build -A haskellPackages.ouroboros-network.checks
```
### Ouroboros-Consensus test suite
```
cabal new-run pkg:ouroboros-consensus:tests
```
or with `nix`
```
-
nix-build -A nix-tools.tests.ouroboros-consensus
+
nix-build -A haskellPackages.ouroboros-consensus.checks
```

                      
# Ouroboros-Consensus
```
or with `nix`
```
-
nix-build -A nix-tools.tests.ouroboros-consensus.test-consensus
+
nix-build -A haskellPackages.ouroboros-consensus.checks.test-consensus
```
### Storage test suite
```
cabal new-run pkg:ouroboros-consensus:test-storage
```
or with `nix`
```
-
nix-build -A nix-tools.tests.ouroboros-consensus.test-storage
+
nix-build -A haskellPackages.ouroboros-consensus.checks.test-storage
```
m
+20/-4
+
index-state: 2020-01-31T00:00:00Z
+

                      
packages: ./typed-protocols
          ./typed-protocols-examples
          ./ouroboros-network-testing

                      
package ouroboros-network
  tests: True
-
  flags: +asserts
+
  flags: +asserts -cddl

                      
package ouroboros-consensus
  tests: True
source-repository-package
  type: git
  location: https://github.com/input-output-hk/iohk-monitoring-framework
-
  subdir:   contra-tracer
  tag: dd30455144e11efb435619383ba84ce02aee720d
+
  --sha256: 1g08bg99fvss99kg27l7pmxm7lh60573xln8l8x2rzvwfvfgk2i5
+
  subdir:   contra-tracer

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-prelude
  tag: 00487726c4bc21b4744e59d913334ebfeac7d68e
-
  subdir: .
+
  --sha256: 0v4fcq5kdd2r5dgwys8kv46ff33qp756n26ycxrca10wq14zkwm5

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-prelude
  tag: 00487726c4bc21b4744e59d913334ebfeac7d68e
+
  --sha256: 0v4fcq5kdd2r5dgwys8kv46ff33qp756n26ycxrca10wq14zkwm5
  subdir: test

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-base
  tag: 474622cfde663730e10e2e0d5de0ed06a867a844
+
  --sha256: 1waqjyp6ycmn8lqrsnb8d14p43645mqknd5m0apb7814s3xd3f07
  subdir: binary

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-base
  tag: 474622cfde663730e10e2e0d5de0ed06a867a844
+
  --sha256: 1waqjyp6ycmn8lqrsnb8d14p43645mqknd5m0apb7814s3xd3f07
  subdir: binary/test

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-base
  tag: 474622cfde663730e10e2e0d5de0ed06a867a844
+
  --sha256: 1waqjyp6ycmn8lqrsnb8d14p43645mqknd5m0apb7814s3xd3f07
  subdir: cardano-crypto-class

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-base
  tag: 474622cfde663730e10e2e0d5de0ed06a867a844
+
  --sha256: 1waqjyp6ycmn8lqrsnb8d14p43645mqknd5m0apb7814s3xd3f07
  subdir: slotting

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-ledger-specs
  tag: 6d154d16de01edf2d3ff56303b7a34cb188ed217
+
  --sha256: 010hgxnia3ryq74k9cf2yn39qnni1j27vg7xlzmdqr27p8ikkrw7
  subdir: byron/semantics/executable-spec

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-ledger-specs
  tag: 6d154d16de01edf2d3ff56303b7a34cb188ed217
+
  --sha256: 010hgxnia3ryq74k9cf2yn39qnni1j27vg7xlzmdqr27p8ikkrw7
  subdir: byron/ledger/executable-spec

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-ledger-specs
  tag: 6d154d16de01edf2d3ff56303b7a34cb188ed217
+
  --sha256: 010hgxnia3ryq74k9cf2yn39qnni1j27vg7xlzmdqr27p8ikkrw7
  subdir: byron/chain/executable-spec

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/goblins
  tag: 26d35ad52fe9ade3391532dbfeb2f416f07650bc
+
  --sha256: 17p5x0hj6c67jkdqx0cysqlwq2zs2l87azihn1alzajy9ak6ii0b

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-ledger
  tag: 6d533b72d4a91b756cd8ffe164928d5f5eebcfa0
+
  --sha256: 08jbmlq5jj36jkn2iw9znl7jkgnjgq37i70asmp62igqyjhis8q6
  subdir: cardano-ledger

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-ledger
  tag: 6d533b72d4a91b756cd8ffe164928d5f5eebcfa0
+
  --sha256: 08jbmlq5jj36jkn2iw9znl7jkgnjgq37i70asmp62igqyjhis8q6
  subdir: crypto

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-ledger
  tag: 6d533b72d4a91b756cd8ffe164928d5f5eebcfa0
+
  --sha256: 08jbmlq5jj36jkn2iw9znl7jkgnjgq37i70asmp62igqyjhis8q6
  subdir: cardano-ledger/test

                      
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-ledger
  tag: 6d533b72d4a91b756cd8ffe164928d5f5eebcfa0
+
  --sha256: 08jbmlq5jj36jkn2iw9znl7jkgnjgq37i70asmp62igqyjhis8q6
  subdir: crypto/test

                      
-- version number matching the one specified in the stack resolver file
source-repository-package
  type: git
  location: https://github.com/input-output-hk/cardano-crypto/
  tag: 3c707936ba0a665375acf5bd240dc4b6eaa6c0bc
-
  subdir: .
+
  --sha256: 0g8ln8k8wx4csdv92bz09pr7v9dp4lcyv1334b09c9rgwdwhqg1b
-
#!/bin/sh
-

                      
-
self=$(basename $PWD)
-

                      
-
fmap() {
-
        f=$1
-
        read line
-
        while test -n "$line"
-
        do ${f} "$line"
-
           read line; done
-
}
-

                      
-
## Compute a case pattern that would match local cabal package names.
-
local_packages="$(find . -name '*.cabal' | grep -v dist-newstyle | fmap basename | sed 's/.cabal//' | xargs echo)"
-
match_local_packages_case_pattern="$(echo $local_packages | sed 's/ / | /g')"
-

                      
-
stack_to_nix_pins=nix/.stack.nix/*.nix
-
ls ${stack_to_nix_pins} >/dev/null || {
-
        echo "ERROR: stack-to-nix pins not found: ${stack_to_nix_pins}"
-
        exit 1
-
}
-

                      
-
for x in ${stack_to_nix_pins}
-
do
-
        name=$(basename -s .nix $x)
-
        eval "case '$name' in 'default' | ${match_local_packages_case_pattern} ) continue; esac"
-
        url=$(grep 'url =' $x | cut -d'"' -f2 | xargs echo |
-
              sed s'/^http:/https:/' |
-
              sed s'/\.git$//')
-
        rev=$(grep 'rev =' $x | cut -d'"' -f2)
-
        query="${url}/branch_commits/${rev}"
-
        echo -n "${name}: "
-
        if ! curl --silent "${query}" |
-
                fgrep '<li class="branch">' |
-
                cut -d'>' -f3 |
-
                cut -d'<' -f1 | grep 'master'
-
         then
-
                cat <<EOF
-
${name} ${rev} not in master of ${url}
-
check:
-
curl --silent ${query}
-
EOF
-
                exit 1
-
        fi
-
done
-
#!/usr/bin/env nix-shell
-
#!nix-shell -p jq hydra -i bash -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/09195057114a0a8d112c847a9a8f52957420857d.tar.gz
-

                      
-
echo '~~~ Evaluating release.nix'
-
export HYDRA_CONFIG=$(mktemp hydra.conf.XXX)
-
echo evaluator_max_heap_size=$((2 * 1024 * 1024 * 1024)) > $HYDRA_CONFIG
-
command time --format '%e' -o eval-time.txt \
-
    hydra-eval-jobs \
-
    --option allowed-uris "https://github.com/NixOS https://github.com/input-output-hk" \
-
    -I . release.nix \
-
    --arg supportedSystems '["x86_64-linux"]' > eval.json
-
rm $HYDRA_CONFIG
-
EVAL_EXIT_CODE="$?"
-
if [ "$EVAL_EXIT_CODE" != 0 ]
-
then
-
  rm eval.json eval-time.txt
-
  echo -e "\\e[31;1mERROR: Failed to evaluate release.nix\\e[0m"
-
  exit 1
-
fi
-
EVAL_TIME=$(cat eval-time.txt)
-
jq . < eval.json
-
ERRORS=$(jq -r 'map_values(.error)|to_entries[]|select(.value)|@text "\(.key): \(.value)"' < eval.json)
-
NUM_ERRORS=$(jq -r '[ map_values(.error)|to_entries[]|select(.value) ] |length' < eval.json)
-
rm eval.json eval-time.txt
-

                      
-
if [ "$NUM_ERRORS" != 0 ]
-
then
-
  echo -e "\\e[31;1mERROR: evaluation completed in $EVAL_TIME seconds with $NUM_ERRORS errors\\e[0m"
-
  echo "$ERRORS"
-
  exit 1
-
else
-
  echo -e "\\e[32;1mOK: evaluation completed in $EVAL_TIME seconds with no errors\\e[0m"
-
  exit 0
-
fi
-
#!/usr/bin/env nix-shell
-
#!nix-shell -i bash -p git bash nixStable
-

                      
-
# Check and warn if stack-to-nix auto-generated code is out of date.
-

                      
-
set -xe
-

                      
-
fail_stack2nix_check() {
-
  git diff -w --text > /tmp/stack2nix.patch
-
  buildkite-agent artifact upload /tmp/stack2nix.patch --job "$BUILDKITE_JOB_ID"
-
  echo "ERROR: you need to (run ./nix/regenerate.sh or apply the patch in the buildkite artifact) and commit the changes" >&2
-
  exit 1
-
}
-

                      
-
# Get relative path to script directory
-
scriptDir=$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")
-

                      
-
"${scriptDir}/../nix/regenerate.sh"
-

                      
-
git diff -w --text --exit-code || fail_stack2nix_check
m
+45/-47
-
{ customConfig ? {}
-
, withHoogle ? true
-
, ... }:
-
#
-
# The default.nix file. This will generate targets for all
-
# buildables (see release.nix for nomenclature, excluding
-
# the "build machine" last part, specific to release.nix), eg.:
-
#
-
# - nix build -f default.nix nix-tools.tests.io-sim # All `io-sim` tests
-
# - nix build -f default.nix nix-tools.tests.ouroboros-consensus.test-consensus
-
#
-
# Generated targets include anything from stack.yaml (via nix-tools:stack-to-nix and the nix/regenerate.sh script)
-
# or cabal.project (via nix-tools:plan-to-nix), including all
-
# version overrides specified there.
-
#
-
# Nix-tools stack-to-nix will generate the `nix/.stack-pkgs.nix`
-
# file which is imported from the `nix/pkgs.nix` where further
-
# customizations outside of the ones in stack.yaml/cabal.project
-
# can be specified as needed for nix/ci.
-
#
-
# Please run `nix/regenerate.sh` after modifying stack.yaml
-
# or relevant part of cabal configuration files.
-
# When switching to recent stackage or hackage package version,
-
# you might also need to update the iohk-nix common lib. You
-
# can do so by running the `nix/update-iohk-nix.sh` script.
-
#
-
# More information about iohk-nix and nix-tools is available at:
-
# https://github.com/input-output-hk/iohk-nix/blob/master/docs/nix-toolification.org#for-a-stackage-project
-
#
-

                      
-
# We will need to import the iohk-nix common lib, which includes
-
# the nix-tools tooling.
+
{ system ? builtins.currentSystem
+
, crossSystem ? null
+
# allows to cutomize haskellNix (ghc and profiling, see ./nix/haskell.nix)
+
, config ? {}
+
# allows to override dependencies of the project without modifications,
+
# eg. to test build against local checkout of nixpkgs and iohk-nix:
+
# nix build -f default.nix cardano-ledger --arg sourcesOverride '{
+
#   iohk-nix = ../iohk-nix;
+
# }'
+
, sourcesOverride ? {}
+
# pinned version of nixpkgs augmented with overlays (iohk-nix and our packages).
+
, pkgs ? import ./nix { inherit system crossSystem config sourcesOverride; }
+
, gitrev ? pkgs.iohkNix.commitIdFromGitRepoOrZero ./.git
+
}:
+
with pkgs; with commonLib;
let
-
  commonLib = import ./nix/iohk-common.nix;
-

                      
-
# This file needs to export a function that takes
-
# the arguments it is passed and forwards them to
-
# the default-nix template from iohk-nix. This is
-
# important so that the release.nix file can properly
-
# parameterize this file when targetting different
-
# hosts.
-
  nixTools = import ./nix/nix-tools.nix {};
-
  validate-mainnet-test = import ./nix/validate-mainnet.nix
-
    {pkgs = commonLib.pkgs; byron-db-converter = nixTools.nix-tools.exes.ouroboros-consensus; };
-
in {
-
  inherit (nixTools) nix-tools shell;
-
  tests = { inherit validate-mainnet-test; };
-
}
+

                      
+
  haskellPackages = recRecurseIntoAttrs
+
    # the Haskell.nix package set, reduced to local packages.
+
    (selectProjectPackages ouroborosNetworkHaskellPackages);
+

                      
+
  self = {
+
    inherit haskellPackages;
+

                      
+
    inherit (haskellPackages.ouroboros-network.identifier) version;
+

                      
+
    # `tests` are the test suites which have been built.
+
    tests = collectComponents' "tests" haskellPackages;
+
    # `benchmarks` (only built, not run).
+
    benchmarks = collectComponents' "benchmarks" haskellPackages;
+

                      
+
    libs = collectComponents' "library" haskellPackages;
+

                      
+
    exes = collectComponents' "exes" haskellPackages;
+

                      
+
    checks = recurseIntoAttrs {
+
      # `checks.tests` collect results of executing the tests:
+
      tests = collectChecks haskellPackages;
+
    };
+

                      
+
    shell = import ./shell.nix {
+
      inherit pkgs;
+
      withHoogle = true;
+
    };
+
};
+
in self
a
+42/-0
+
{ system ? builtins.currentSystem
+
, crossSystem ? null
+
, config ? {}
+
, overlays ? []
+
}:
+

                      
+
let
+
  sources = import ./nix/sources.nix;
+
  iohkNix = import sources.iohk-nix {
+
    sourcesOverride = sources;
+
  };
+
  haskellNix = import sources."haskell.nix";
+
  args = haskellNix // {
+
    inherit system crossSystem;
+
    overlays = (haskellNix.overlays or []) ++ overlays;
+
    config = (haskellNix.config or {}) // config;
+
  };
+
  nixpkgs = import sources.nixpkgs;
+
  pkgs = nixpkgs args;
+
  haskellPackages = import ./nix/pkgs.nix {
+
    inherit pkgs;
+
    src = ./.;
+
  };
+
  lib = pkgs.lib;
+
  niv = (import sources.niv {}).niv;
+
  isCardanoBase = with lib; package:
+
    (package.isHaskell or false) &&
+
      (hasPrefix "cardano-base" package.identifier.name);
+
  filterCardanoPackages = pkgs.lib.filterAttrs (_: package: isCardanoBase package);
+
  getPackageChecks = pkgs.lib.mapAttrs (_: package: package.checks);
+
in lib // {
+
  inherit (pkgs.haskell-nix.haskellLib) collectComponents;
+
  inherit
+
    niv
+
    sources
+
    haskellPackages
+
    pkgs
+
    iohkNix
+
    isCardanoBase
+
    getPackageChecks
+
    filterCardanoPackages;
+
}
```
or
```
-
nix-build -A nix-tools.tests.network-mux
+
nix-build -A haskellPackages.network-mux.checks
```
-
{
-
  overlay = hackage:
-
    {
-
      packages = {
-
        "ekg" = (((hackage.ekg)."0.4.0.15").revisions).default;
-
        "libyaml" = (((hackage.libyaml)."0.1.0.0").revisions).default;
-
        "time-units" = (((hackage.time-units)."1.0.0").revisions).default;
-
        "ekg-json" = (((hackage.ekg-json)."0.1.0.6").revisions).default;
-
        "base58-bytestring" = (((hackage.base58-bytestring)."0.1.0").revisions).default;
-
        "half" = (((hackage.half)."0.2.2.3").revisions).default;
-
        "micro-recursion-schemes" = (((hackage.micro-recursion-schemes)."5.0.2.2").revisions).default;
-
        "streaming-binary" = (((hackage.streaming-binary)."0.3.0.1").revisions).default;
-
        "pretty-show" = (((hackage.pretty-show)."1.8.2").revisions).default;
-
        "graphviz" = (((hackage.graphviz)."2999.20.0.3").revisions)."cde383c356bc41136ed53cd27e0800f46dbd2185600dd0de18d66d5c49739d94";
-
        "quickcheck-state-machine" = (((hackage.quickcheck-state-machine)."0.6.0").revisions)."3e4f8df0f6b5d415e3c8840dc75034a63e37f56f5f8cfa1035ded16345235ac4";
-
        } // {
-
        typed-transitions = ./.stack.nix/typed-transitions.nix;
-
        typed-protocols = ./.stack.nix/typed-protocols.nix;
-
        ouroboros-network = ./.stack.nix/ouroboros-network.nix;
-
        ouroboros-network-testing = ./.stack.nix/ouroboros-network-testing.nix;
-
        ouroboros-consensus = ./.stack.nix/ouroboros-consensus.nix;
-
        io-sim = ./.stack.nix/io-sim.nix;
-
        io-sim-classes = ./.stack.nix/io-sim-classes.nix;
-
        iohk-monitoring = ./.stack.nix/iohk-monitoring.nix;
-
        contra-tracer = ./.stack.nix/contra-tracer.nix;
-
        cardano-binary = ./.stack.nix/cardano-binary.nix;
-
        cardano-ledger = ./.stack.nix/cardano-ledger.nix;
-
        cardano-crypto-wrapper = ./.stack.nix/cardano-crypto-wrapper.nix;
-
        cardano-prelude = ./.stack.nix/cardano-prelude.nix;
-
        cborg = ./.stack.nix/cborg.nix;
-
        cardano-crypto = ./.stack.nix/cardano-crypto.nix;
-
        hedgehog = ./.stack.nix/hedgehog.nix;
-
        canonical-json = ./.stack.nix/canonical-json.nix;
-
        };
-
      compiler.version = "8.6.4";
-
      compiler.nix-name = "ghc864";
-
      };
-
  resolver = "lts-13.13";
-
  compiler = "ghc-8.6.4";
-
  }
-
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
-
  {
-
    flags = { demo = false; };
-
    package = {
-
      specVersion = "1.10";
-
      identifier = { name = "Win32-network"; version = "0.1.0.0"; };
-
      license = "Apache-2.0";
-
      copyright = "2019 Input Output (Hong Kong) Ltd.";
-
      author = "Duncan Coutts, Marcin Szamotulski";
-
      homepage = "";
-
      url = "";
-
      synopsis = "Win32 network API";
-
      description = "";
-
      buildType = "Simple";
-
      };
-
    components = {
-
      "library" = {
-
        depends = (pkgs.lib).optionals (system.isWindows) [
-
          (hsPkgs.base)
-
          (hsPkgs.bytestring)
-
          (hsPkgs.network)
-
          (hsPkgs.Win32)
-
          ];
-
        libs = (pkgs.lib).optional (system.isWindows) (pkgs."ws2_32");
-
        };
-
      exes = {
-
        "named-pipe-demo" = {
-
          depends = if system.isWindows
-
            then [
-
              (hsPkgs.base)
-
              (hsPkgs.binary)
-
              (hsPkgs.bytestring)
-
              (hsPkgs.Win32)
-
              (hsPkgs.Win32-network)
-
              ]
-
            else [ (hsPkgs.base) ];
-
          };
-
        };
-
      tests = {
-
        "test-Win32-network" = {
-
          depends = if system.isWindows
-
            then [
-
              (hsPkgs.async)
-
              (hsPkgs.base)
-
              (hsPkgs.binary)
-
              (hsPkgs.bytestring)
-
              (hsPkgs.network)
-
              (hsPkgs.stm)
-
              (hsPkgs.tasty)
-
              (hsPkgs.tasty-hunit)
-
              (hsPkgs.tasty-quickcheck)
-
              (hsPkgs.QuickCheck)
-
              (hsPkgs.quickcheck-instances)
-
              (hsPkgs.Win32)
-
              (hsPkgs.Win32-network)
-
              ]
-
            else [ (hsPkgs.base) ];
-
          };
-
        };
-
      };
-
    } // rec { src = (pkgs.lib).mkDefault ../../././Win32-network; }
\ No newline at end of file
-
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
-
  {
-
    flags = { development = false; };
-
    package = {
-
      specVersion = "1.10";
-
      identifier = { name = "cardano-binary-test"; version = "1.3.0"; };
-
      license = "MIT";
-
      copyright = "2019 IOHK";
-
      maintainer = "[email protected]";
-
      author = "IOHK";
-
      homepage = "";
-
      url = "";
-
      synopsis = "Test helpers from cardano-binary exposed to other packages";
-
      description = "Test helpers from cardano-binary exposed to other packages";
-
      buildType = "Simple";
-
      };
-
    components = {
-
      "library" = {
-
        depends = [
-
          (hsPkgs.base)
-
          (hsPkgs.bytestring)
-
          (hsPkgs.cardano-binary)
-
          (hsPkgs.cardano-prelude)
-
          (hsPkgs.cardano-prelude-test)
-
          (hsPkgs.cborg)
-
          (hsPkgs.containers)
-
          (hsPkgs.formatting)
-
          (hsPkgs.hedgehog)
-
          (hsPkgs.hspec)
-
          (hsPkgs.pretty-show)
-
          (hsPkgs.QuickCheck)
-
          (hsPkgs.quickcheck-instances)
-
          (hsPkgs.text)
-
          (hsPkgs.vector)
-
          ];
-
        };
-
      };
-
    } // {
-
    src = (pkgs.lib).mkDefault (pkgs.fetchgit {
-
      url = "https://github.com/input-output-hk/cardano-base";
-
      rev = "474622cfde663730e10e2e0d5de0ed06a867a844";
-
      sha256 = "1waqjyp6ycmn8lqrsnb8d14p43645mqknd5m0apb7814s3xd3f07";
-
      });
-
    postUnpack = "sourceRoot+=/binary/test; echo source root reset to \$sourceRoot";
-
    }
\ No newline at end of file
-
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
-
  {
-
    flags = { development = false; };
-
    package = {
-
      specVersion = "1.10";
-
      identifier = { name = "cardano-binary"; version = "1.5.0"; };
-
      license = "Apache-2.0";
-
      copyright = "2019 IOHK";
-
      maintainer = "[email protected]";
-
      author = "IOHK";
-
      homepage = "";
-
      url = "";
-
      synopsis = "Binary serialization for Cardano";
-
      description = "This package includes the binary serialization format for Cardano";
-
      buildType = "Simple";
-
      };
-
    components = {
-
      "library" = {
-
        depends = [
-
          (hsPkgs.base)
-
          (hsPkgs.aeson)
-
          (hsPkgs.bytestring)
-
          (hsPkgs.cardano-prelude)
-
          (hsPkgs.cborg)
-
          (hsPkgs.containers)
-
          (hsPkgs.digest)
-
          (hsPkgs.formatting)
-
          (hsPkgs.recursion-schemes)
-
          (hsPkgs.safe-exceptions)
-
          (hsPkgs.tagged)
-
          (hsPkgs.text)
-
          (hsPkgs.time)
-
          (hsPkgs.vector)
-
          ];
-
        };
-
      tests = {
-
        "test" = {
-
          depends = [
-
            (hsPkgs.base)
-
            (hsPkgs.bytestring)
-
            (hsPkgs.cardano-binary)
-
            (hsPkgs.cardano-prelude)
-
            (hsPkgs.cardano-prelude-test)
-
            (hsPkgs.cborg)
-
            (hsPkgs.containers)
-
            (hsPkgs.formatting)
-
            (hsPkgs.hedgehog)
-
            (hsPkgs.hspec)
-
            (hsPkgs.pretty-show)
-
            (hsPkgs.QuickCheck)
-
            (hsPkgs.quickcheck-instances)
-
            (hsPkgs.tagged)
-
            (hsPkgs.text)
-
            (hsPkgs.vector)
-
            ];
-
          };
-
        };
-
      };
-
    } // {
-
    src = (pkgs.lib).mkDefault (pkgs.fetchgit {
-
      url = "https://github.com/input-output-hk/cardano-base";
-
      rev = "474622cfde663730e10e2e0d5de0ed06a867a844";
-
      sha256 = "1waqjyp6ycmn8lqrsnb8d14p43645mqknd5m0apb7814s3xd3f07";
-
      });
-
    postUnpack = "sourceRoot+=/binary; echo source root reset to \$sourceRoot";
-
    }
\ No newline at end of file
-
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
-
  {
-
    flags = { development = false; };
-
    package = {
-
      specVersion = "1.10";
-
      identifier = { name = "cardano-crypto-class"; version = "2.0.0"; };
-
      license = "Apache-2.0";
-
      copyright = "2019 IOHK";
-
      maintainer = "[email protected]";
-
      author = "IOHK";
-
      homepage = "";
-
      url = "";
-
      synopsis = "Type classes abstracting over cryptography primitives for Cardano";
-
      description = "Type classes abstracting over cryptography primitives for Cardano";
-
      buildType = "Simple";
-
      };
-
    components = {
-
      "library" = {
-
        depends = [
-
          (hsPkgs.base)
-
          (hsPkgs.base16-bytestring)
-
          (hsPkgs.bytestring)
-
          (hsPkgs.cardano-binary)
-
          (hsPkgs.cardano-prelude)
-
          (hsPkgs.cryptonite)
-
          (hsPkgs.deepseq)
-
          (hsPkgs.memory)
-
          (hsPkgs.reflection)
-
          (hsPkgs.vector)
-
          ];
-
        };
-
      tests = {
-
        "test-crypto" = {
-
          depends = [
-
            (hsPkgs.base)
-
            (hsPkgs.bytestring)
-
            (hsPkgs.cardano-binary)
-
            (hsPkgs.cardano-crypto-class)
-
            (hsPkgs.cborg)
-
            (hsPkgs.cryptonite)
-
            (hsPkgs.QuickCheck)
-
            (hsPkgs.tasty)
-
            (hsPkgs.tasty-quickcheck)
-
            ];
-
          };
-
        };
-
      };
-
    } // {
-
    src = (pkgs.lib).mkDefault (pkgs.fetchgit {
-
      url = "https://github.com/input-output-hk/cardano-base";
-
      rev = "474622cfde663730e10e2e0d5de0ed06a867a844";
-
      sha256 = "1waqjyp6ycmn8lqrsnb8d14p43645mqknd5m0apb7814s3xd3f07";
-
      });
-
    postUnpack = "sourceRoot+=/cardano-crypto-class; echo source root reset to \$sourceRoot";
-
    }
\ No newline at end of file
-
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
-
  {
-
    flags = { development = false; };
-
    package = {
-
      specVersion = "1.10";
-
      identifier = { name = "cardano-crypto-test"; version = "1.3.0"; };
-
      license = "MIT";
-
      copyright = "2018 IOHK";
-
      maintainer = "[email protected]";
-
      author = "IOHK";
-
      homepage = "";
-
      url = "";
-
      synopsis = "Test helpers from cardano-crypto exposed to other packages";
-
      description = "Test helpers from cardano-crypto exposed to other packages";
-
      buildType = "Simple";
-
      };
-
    components = {
-
      "library" = {
-
        depends = [
-
          (hsPkgs.base)
-
          (hsPkgs.bytestring)
-
          (hsPkgs.cardano-binary)
-
          (hsPkgs.cardano-binary-test)
-
          (hsPkgs.cardano-crypto)
-
          (hsPkgs.cardano-crypto-wrapper)
-
          (hsPkgs.cardano-prelude)
-
          (hsPkgs.cardano-prelude-test)
-
          (hsPkgs.cryptonite)
-
          (hsPkgs.hedgehog)
-
          (hsPkgs.memory)
-
          ];
-
        };
-
      };
-
    } // {
-
    src = (pkgs.lib).mkDefault (pkgs.fetchgit {
-
      url = "https://github.com/input-output-hk/cardano-ledger";
-
      rev = "6d533b72d4a91b756cd8ffe164928d5f5eebcfa0";
-
      sha256 = "08jbmlq5jj36jkn2iw9znl7jkgnjgq37i70asmp62igqyjhis8q6";
-
      });
-
    postUnpack = "sourceRoot+=/crypto/test; echo source root reset to \$sourceRoot";
-
    }
\ No newline at end of file
-
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
-
  {
-
    flags = { development = false; };
-
    package = {
-
      specVersion = "1.10";
-
      identifier = { name = "cardano-crypto-wrapper"; version = "1.3.0"; };
-
      license = "MIT";
-
      copyright = "2019 IOHK";
-
      maintainer = "[email protected]";
-
      author = "IOHK";
-
      homepage = "";
-
      url = "";
-
      synopsis = "Cryptographic primitives used in the Cardano project";
-
      description = "Cryptographic primitives used in the Cardano project";
-
      buildType = "Simple";
-
      };
-
    components = {
-
      "library" = {
-
        depends = [
-
          (hsPkgs.base)
-
          (hsPkgs.aeson)
-
          (hsPkgs.base64-bytestring)
-
          (hsPkgs.base64-bytestring-type)
-
          (hsPkgs.binary)
-
          (hsPkgs.bytestring)
-
          (hsPkgs.canonical-json)
-
          (hsPkgs.cardano-binary)
-
          (hsPkgs.cardano-crypto)
-
          (hsPkgs.cardano-prelude)
-
          (hsPkgs.cryptonite)
-
          (hsPkgs.cryptonite-openssl)
-
          (hsPkgs.data-default)
-
          (hsPkgs.formatting)
-
          (hsPkgs.memory)
-
          (hsPkgs.mtl)
-
          (hsPkgs.text)
-
          ];
-
        };
-
      tests = {
-
        "test" = {
-
          depends = [
-
            (hsPkgs.base)
-
            (hsPkgs.bytestring)
-
            (hsPkgs.cardano-binary)
-
            (hsPkgs.cardano-binary-test)
-
            (hsPkgs.cardano-crypto)
-
            (hsPkgs.cardano-crypto-wrapper)
-
            (hsPkgs.cardano-prelude)
-
            (hsPkgs.cardano-prelude-test)
-
            (hsPkgs.cryptonite)
-
            (hsPkgs.formatting)
-
            (hsPkgs.hedgehog)
-
            (hsPkgs.memory)
-
            (hsPkgs.text)
-
            ];
-
          };
-
        };
-
      };
-
    } // {
-
    src = (pkgs.lib).mkDefault (pkgs.fetchgit {
-
      url = "https://github.com/input-output-hk/cardano-ledger";
-
      rev = "6d533b72d4a91b756cd8ffe164928d5f5eebcfa0";
-
      sha256 = "08jbmlq5jj36jkn2iw9znl7jkgnjgq37i70asmp62igqyjhis8q6";
-
      });
-
    postUnpack = "sourceRoot+=/crypto; echo source root reset to \$sourceRoot";
-
    }
\ No newline at end of file
-
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
-
  {
-
    flags = { golden-tests = false; golden-tests-exe = false; };
-
    package = {
-
      specVersion = "1.10";
-
      identifier = { name = "cardano-crypto"; version = "1.1.0"; };
-
      license = "MIT";
-
      copyright = "2016-2017 IOHK";
-
      maintainer = "[email protected]";
-
      author = "Vincent Hanquez";
-
      homepage = "https://github.com/input-output-hk/cardano-crypto#readme";
-
      url = "";
-
      synopsis = "Cryptography primitives for cardano";
-
      description = "";
-
      buildType = "Simple";
-
      };
-
    components = {
-
      "library" = {
-
        depends = [
-
          (hsPkgs.base)
-
          (hsPkgs.memory)
-
          (hsPkgs.deepseq)
-
          (hsPkgs.bytestring)
-
          (hsPkgs.basement)
-
          (hsPkgs.foundation)
-
          (hsPkgs.cryptonite)
-
          (hsPkgs.cryptonite-openssl)
-
          (hsPkgs.hashable)
-
          (hsPkgs.integer-gmp)
-
          ];
-
        };
-
      exes = {
-
        "golden-tests" = {
-
          depends = [
-
            (hsPkgs.base)
-
            (hsPkgs.basement)
-
            (hsPkgs.foundation)
-
            (hsPkgs.memory)
-
            (hsPkgs.bytestring)
-
            (hsPkgs.cryptonite)
-
            (hsPkgs.cardano-crypto)
-
            ] ++ (pkgs.lib).optional (flags.golden-tests-exe) (hsPkgs.inspector);
-
          };
-
        };
-
      tests = {
-
        "cardano-crypto-test" = {
-
          depends = [
-
            (hsPkgs.base)
-
            (hsPkgs.bytestring)
-
            (hsPkgs.memory)
-
            (hsPkgs.cryptonite)
-
            (hsPkgs.cardano-crypto)
-
            (hsPkgs.basement)
-
            (hsPkgs.foundation)
-
            ];
-
          };
-
        "cardano-crypto-golden-tests" = {
-
          depends = [
-
            (hsPkgs.base)
-
            (hsPkgs.basement)
-
            (hsPkgs.foundation)
-
            (hsPkgs.memory)
-
            (hsPkgs.bytestring)
-
            (hsPkgs.cryptonite)
-
            (hsPkgs.cardano-crypto)
-
            ] ++ (pkgs.lib).optional (flags.golden-tests) (hsPkgs.inspector);
-
          };
-
        };
-
      benchmarks = {
-
        "cardano-crypto-bench" = {
-
          depends = [
-
            (hsPkgs.base)
-
            (hsPkgs.bytestring)
-
            (hsPkgs.memory)
-
            (hsPkgs.cryptonite)
-
            (hsPkgs.cardano-crypto)
-
            (hsPkgs.gauge)
-
            ];
-
          };
-
        };
-
      };
-
    } // {
-
    src = (pkgs.lib).mkDefault (pkgs.fetchgit {
-
      url = "https://github.com/input-output-hk/cardano-crypto";
-
      rev = "3c707936ba0a665375acf5bd240dc4b6eaa6c0bc";
-
      sha256 = "0g8ln8k8wx4csdv92bz09pr7v9dp4lcyv1334b09c9rgwdwhqg1b";
-
      });
-
    }
\ No newline at end of file
-
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
-
  {
-
    flags = { development = false; };
-
    package = {
-
      specVersion = "1.10";
-
      identifier = { name = "cardano-ledger-test"; version = "1.3.0"; };
-
      license = "MIT";
-
      copyright = "2018 IOHK";
-
      maintainer = "[email protected]";
-
      author = "IOHK";
-
      homepage = "";
-
      url = "";
-
      synopsis = "Test helpers from cardano-ledger exposed to other packages";
-
      description = "Test helpers from cardano-ledger exposed to other packages";
-
      buildType = "Simple";
-
      };
-
    components = {
-
      "library" = {
-
        depends = [
-
          (hsPkgs.base)
-
          (hsPkgs.base16-bytestring)
-
          (hsPkgs.bimap)
-
          (hsPkgs.bytestring)
-
          (hsPkgs.cardano-binary)
-
          (hsPkgs.cardano-binary-test)
-
          (hsPkgs.cardano-ledger)
-
          (hsPkgs.cardano-crypto)
-
          (hsPkgs.cardano-crypto-test)
-
          (hsPkgs.cardano-crypto-wrapper)
-
          (hsPkgs.cardano-prelude)
-
          (hsPkgs.cardano-prelude-test)
-
          (hsPkgs.containers)
-
          (hsPkgs.cryptonite)
-
          (hsPkgs.cs-blockchain)
-
          (hsPkgs.cs-ledger)
-
          (hsPkgs.directory)
-
          (hsPkgs.filepath)
-
          (hsPkgs.formatting)
-
          (hsPkgs.generic-monoid)
-
          (hsPkgs.hedgehog)
-
          (hsPkgs.lens)
-
          (hsPkgs.mtl)
-
          (hsPkgs.optparse-applicative)
-
          (hsPkgs.resourcet)
-
          (hsPkgs.small-steps)
-
          (hsPkgs.streaming)
-
          (hsPkgs.tasty)
-
          (hsPkgs.tasty-hedgehog)
-
          (hsPkgs.text)
-
          (hsPkgs.time)
-
          (hsPkgs.vector)
-
          ];
-
        };
-
      };
-
    } // {
-
    src = (pkgs.lib).mkDefault (pkgs.fetchgit {
-
      url = "https://github.com/input-output-hk/cardano-ledger";
-
      rev = "6d533b72d4a91b756cd8ffe164928d5f5eebcfa0";
-
      sha256 = "08jbmlq5jj36jkn2iw9znl7jkgnjgq37i70asmp62igqyjhis8q6";
-
      });
-
    postUnpack = "sourceRoot+=/cardano-ledger/test; echo source root reset to \$sourceRoot";
-
    }
\ No newline at end of file
-
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
-
  {
-
    flags = { development = false; test-normal-form = false; };
-
    package = {
-
      specVersion = "1.10";
-
      identifier = { name = "cardano-ledger"; version = "0.1.0.0"; };
-
      license = "MIT";
-
      copyright = "2018 IOHK";
-
      maintainer = "[email protected]";
-
      author = "IOHK";
-
      homepage = "";
-
      url = "";
-
      synopsis = "The blockchain layer of Cardano";
-
      description = "The blockchain layer of Cardano";
-
      buildType = "Simple";
-
      };
-
    components = {
-
      "library" = {
-
        depends = [
-
          (hsPkgs.base)
-
          (hsPkgs.base58-bytestring)
-
          (hsPkgs.base64-bytestring-type)
-
          (hsPkgs.bimap)
-
          (hsPkgs.binary)
-
          (hsPkgs.bytestring)
-
          (hsPkgs.canonical-json)
-
          (hsPkgs.cardano-binary)
-
          (hsPkgs.cardano-crypto)
-
          (hsPkgs.cardano-crypto-wrapper)
-
          (hsPkgs.cardano-prelude)
-
          (hsPkgs.cborg)
-
          (hsPkgs.containers)
-
          (hsPkgs.contra-tracer)
-
          (hsPkgs.concurrency)
-
          (hsPkgs.cryptonite)
-
          (hsPkgs.Cabal)
-
          (hsPkgs.deepseq)
-
          (hsPkgs.digest)
-
          (hsPkgs.directory)
-
          (hsPkgs.filepath)
-
          (hsPkgs.formatting)
-
          (hsPkgs.megaparsec)
-
          (hsPkgs.memory)
-
          (hsPkgs.mtl)
-
          (hsPkgs.resourcet)
-
          (hsPkgs.streaming)
-
          (hsPkgs.streaming-binary)
-
          (hsPkgs.streaming-bytestring)
-
          (hsPkgs.text)
-
          (hsPkgs.time)
-
          (hsPkgs.vector)
-
          ];
-
        };
-
      tests = {
-
        "cardano-ledger-test" = {
-
          depends = [
-
            (hsPkgs.base)
-
            (hsPkgs.base16-bytestring)
-
            (hsPkgs.bimap)
-
            (hsPkgs.bytestring)
-
            (hsPkgs.cardano-binary)
-
            (hsPkgs.cardano-binary-test)
-
            (hsPkgs.cardano-ledger)
-
            (hsPkgs.cardano-crypto)
-
            (hsPkgs.cardano-crypto-test)
-
            (hsPkgs.cardano-crypto-wrapper)
-
            (hsPkgs.cardano-prelude)
-
            (hsPkgs.cardano-prelude-test)
-
            (hsPkgs.containers)
-
            (hsPkgs.contra-tracer)
-
            (hsPkgs.cryptonite)
-
            (hsPkgs.cs-blockchain)
-
            (hsPkgs.cs-ledger)
-
            (hsPkgs.directory)
-
            (hsPkgs.filepath)
-
            (hsPkgs.formatting)
-
            (hsPkgs.generic-monoid)
-
            (hsPkgs.hedgehog)
-
            (hsPkgs.lens)
-
            (hsPkgs.mtl)
-
            (hsPkgs.optparse-applicative)
-
            (hsPkgs.resourcet)
-
            (hsPkgs.small-steps)
-
            (hsPkgs.streaming)
-
            (hsPkgs.tasty)
-
            (hsPkgs.tasty-hedgehog)
-
            (hsPkgs.text)
-
            (hsPkgs.time)
-
            (hsPkgs.vector)
-
            ];
-
          };
-
        "epoch-validation-normal-form-test" = {
-
          depends = [
-
            (hsPkgs.base)
-
            (hsPkgs.bytestring)
-
            (hsPkgs.cardano-binary)
-
            (hsPkgs.cardano-ledger)
-
            (hsPkgs.cardano-crypto-test)
-
            (hsPkgs.cardano-crypto-wrapper)
-
            (hsPkgs.cardano-prelude)
-
            (hsPkgs.cardano-prelude-test)
-
            (hsPkgs.containers)
-
            (hsPkgs.contra-tracer)
-
            (hsPkgs.directory)
-
            (hsPkgs.filepath)
-
            (hsPkgs.formatting)
-
            (hsPkgs.hedgehog)
-
            (hsPkgs.optparse-applicative)
-
            (hsPkgs.resourcet)
-
            (hsPkgs.silently)
-
            (hsPkgs.streaming)
-
            (hsPkgs.tasty)
-
            (hsPkgs.tasty-hedgehog)
-
            ];
-
          };
-
        };
-
      };
-
    } // {
-
    src = (pkgs.lib).mkDefault (pkgs.fetchgit {
-
      url = "https://github.com/input-output-hk/cardano-ledger";
-
      rev = "6d533b72d4a91b756cd8ffe164928d5f5eebcfa0";
-
      sha256 = "08jbmlq5jj36jkn2iw9znl7jkgnjgq37i70asmp62igqyjhis8q6";
-
      });
-
    postUnpack = "sourceRoot+=/cardano-ledger; echo source root reset to \$sourceRoot";
-
    }
\ No newline at end of file
-
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
-
  {
-
    flags = { development = false; };
-
    package = {
-
      specVersion = "1.10";
-
      identifier = { name = "cardano-prelude-test"; version = "0.1.0.0"; };
-
      license = "MIT";
-
      copyright = "2018 IOHK";
-
      maintainer = "[email protected]";
-
      author = "IOHK";
-
      homepage = "";
-
      url = "";
-
      synopsis = "Utility types and functions for testing Cardano";
-
      description = "Utility types and functions for testing Cardano";
-
      buildType = "Simple";
-
      };
-
    components = {
-
      "library" = {
-
        depends = [
-
          (hsPkgs.base)
-
          (hsPkgs.aeson)
-
          (hsPkgs.aeson-pretty)
-
          (hsPkgs.attoparsec)
-
          (hsPkgs.base16-bytestring)
-
          (hsPkgs.bytestring)
-
          (hsPkgs.canonical-json)
-
          (hsPkgs.cardano-prelude)
-
          (hsPkgs.containers)
-
          (hsPkgs.cryptonite)
-
          (hsPkgs.formatting)
-
          (hsPkgs.hedgehog)
-
          (hsPkgs.hspec)
-
          (hsPkgs.pretty-show)
-
          (hsPkgs.QuickCheck)
-
          (hsPkgs.quickcheck-instances)
-
          (hsPkgs.text)
-
          (hsPkgs.template-haskell)
-
          (hsPkgs.time)
-
          ];
-
        };
-
      };
-
    } // {
-
    src = (pkgs.lib).mkDefault (pkgs.fetchgit {
-
      url = "https://github.com/input-output-hk/cardano-prelude";
-
      rev = "00487726c4bc21b4744e59d913334ebfeac7d68e";
-
      sha256 = "0v4fcq5kdd2r5dgwys8kv46ff33qp756n26ycxrca10wq14zkwm5";
-
      });
-
    postUnpack = "sourceRoot+=/test; echo source root reset to \$sourceRoot";
-
    }
\ No newline at end of file
Diff too large – View on GitHub