diff --git a/nix/.stack.nix/cardano-binary-test.nix b/nix/.stack.nix/cardano-binary-test.nix index 4ba29a5..43d3270 100644 --- a/nix/.stack.nix/cardano-binary-test.nix +++ b/nix/.stack.nix/cardano-binary-test.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { development = false; }; package = { @@ -13,26 +52,28 @@ synopsis = "Test helpers from cardano-binary exposed to other packages"; description = "Test helpers from cardano-binary exposed to other packages"; buildType = "Simple"; + isLocal = true; }; 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) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-prelude-test" or (buildDepError "cardano-prelude-test")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."hedgehog" or (buildDepError "hedgehog")) + (hsPkgs."hspec" or (buildDepError "hspec")) + (hsPkgs."pretty-show" or (buildDepError "pretty-show")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."quickcheck-instances" or (buildDepError "quickcheck-instances")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."vector" or (buildDepError "vector")) ]; + buildable = true; }; }; } // { diff --git a/nix/.stack.nix/cardano-binary.nix b/nix/.stack.nix/cardano-binary.nix index a220b61..e9688a4 100644 --- a/nix/.stack.nix/cardano-binary.nix +++ b/nix/.stack.nix/cardano-binary.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { development = false; }; package = { @@ -13,46 +52,49 @@ synopsis = "Binary serialization for Cardano"; description = "This package includes the binary serialization format for Cardano"; buildType = "Simple"; + isLocal = true; }; 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) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."digest" or (buildDepError "digest")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."recursion-schemes" or (buildDepError "recursion-schemes")) + (hsPkgs."safe-exceptions" or (buildDepError "safe-exceptions")) + (hsPkgs."tagged" or (buildDepError "tagged")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."vector" or (buildDepError "vector")) ]; + buildable = true; }; 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) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-prelude-test" or (buildDepError "cardano-prelude-test")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."hedgehog" or (buildDepError "hedgehog")) + (hsPkgs."hspec" or (buildDepError "hspec")) + (hsPkgs."pretty-show" or (buildDepError "pretty-show")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."quickcheck-instances" or (buildDepError "quickcheck-instances")) + (hsPkgs."tagged" or (buildDepError "tagged")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."vector" or (buildDepError "vector")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/cardano-config.nix b/nix/.stack.nix/cardano-config.nix index eddee98..eec2838 100644 --- a/nix/.stack.nix/cardano-config.nix +++ b/nix/.stack.nix/cardano-config.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,26 +52,28 @@ synopsis = ""; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.cardano-shell) - (hsPkgs.cardano-prelude) - (hsPkgs.iohk-monitoring) - (hsPkgs.lobemo-backend-aggregation) - (hsPkgs.lobemo-backend-editor) - (hsPkgs.lobemo-backend-ekg) - (hsPkgs.lobemo-backend-monitoring) - (hsPkgs.lobemo-scribe-systemd) - (hsPkgs.ouroboros-consensus) - (hsPkgs.async) - (hsPkgs.generic-monoid) - (hsPkgs.optparse-applicative) - (hsPkgs.safe-exceptions) - (hsPkgs.stm) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."cardano-shell" or (buildDepError "cardano-shell")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."lobemo-backend-aggregation" or (buildDepError "lobemo-backend-aggregation")) + (hsPkgs."lobemo-backend-editor" or (buildDepError "lobemo-backend-editor")) + (hsPkgs."lobemo-backend-ekg" or (buildDepError "lobemo-backend-ekg")) + (hsPkgs."lobemo-backend-monitoring" or (buildDepError "lobemo-backend-monitoring")) + (hsPkgs."lobemo-scribe-systemd" or (buildDepError "lobemo-scribe-systemd")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."generic-monoid" or (buildDepError "generic-monoid")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."safe-exceptions" or (buildDepError "safe-exceptions")) + (hsPkgs."stm" or (buildDepError "stm")) ]; + buildable = true; }; }; } // { diff --git a/nix/.stack.nix/cardano-crypto-class.nix b/nix/.stack.nix/cardano-crypto-class.nix index df728b0..5e27d70 100644 --- a/nix/.stack.nix/cardano-crypto-class.nix +++ b/nix/.stack.nix/cardano-crypto-class.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { development = false; }; package = { @@ -13,35 +52,38 @@ synopsis = "Type classes abstracting over cryptography primitives for Cardano"; description = "Type classes abstracting over cryptography primitives for Cardano"; buildType = "Simple"; + isLocal = true; }; 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) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."deepseq" or (buildDepError "deepseq")) + (hsPkgs."memory" or (buildDepError "memory")) + (hsPkgs."reflection" or (buildDepError "reflection")) + (hsPkgs."vector" or (buildDepError "vector")) ]; + buildable = true; }; 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) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-crypto-class" or (buildDepError "cardano-crypto-class")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-quickcheck" or (buildDepError "tasty-quickcheck")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/cardano-crypto-test.nix b/nix/.stack.nix/cardano-crypto-test.nix index 61db21a..dd83f88 100644 --- a/nix/.stack.nix/cardano-crypto-test.nix +++ b/nix/.stack.nix/cardano-crypto-test.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { development = false; }; package = { @@ -13,22 +52,24 @@ synopsis = "Test helpers from cardano-crypto exposed to other packages"; description = "Test helpers from cardano-crypto exposed to other packages"; buildType = "Simple"; + isLocal = true; }; 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) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-binary-test" or (buildDepError "cardano-binary-test")) + (hsPkgs."cardano-crypto" or (buildDepError "cardano-crypto")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-prelude-test" or (buildDepError "cardano-prelude-test")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."hedgehog" or (buildDepError "hedgehog")) + (hsPkgs."memory" or (buildDepError "memory")) ]; + buildable = true; }; }; } // { diff --git a/nix/.stack.nix/cardano-crypto-wrapper.nix b/nix/.stack.nix/cardano-crypto-wrapper.nix index 7a9b6b0..069bded 100644 --- a/nix/.stack.nix/cardano-crypto-wrapper.nix +++ b/nix/.stack.nix/cardano-crypto-wrapper.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { development = false; }; package = { @@ -13,46 +52,49 @@ synopsis = "Cryptographic primitives used in the Cardano project"; description = "Cryptographic primitives used in the Cardano project"; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.aeson) - (hsPkgs.base64-bytestring) - (hsPkgs.base64-bytestring-type) - (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.scrypt) - (hsPkgs.text) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."base64-bytestring" or (buildDepError "base64-bytestring")) + (hsPkgs."base64-bytestring-type" or (buildDepError "base64-bytestring-type")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."canonical-json" or (buildDepError "canonical-json")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-crypto" or (buildDepError "cardano-crypto")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."cryptonite-openssl" or (buildDepError "cryptonite-openssl")) + (hsPkgs."data-default" or (buildDepError "data-default")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."memory" or (buildDepError "memory")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."scrypt" or (buildDepError "scrypt")) + (hsPkgs."text" or (buildDepError "text")) ]; + buildable = true; }; 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) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-binary-test" or (buildDepError "cardano-binary-test")) + (hsPkgs."cardano-crypto" or (buildDepError "cardano-crypto")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-prelude-test" or (buildDepError "cardano-prelude-test")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."hedgehog" or (buildDepError "hedgehog")) + (hsPkgs."memory" or (buildDepError "memory")) + (hsPkgs."text" or (buildDepError "text")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/cardano-explorer-db-test.nix b/nix/.stack.nix/cardano-explorer-db-test.nix index c3f964e..ac50002 100644 --- a/nix/.stack.nix/cardano-explorer-db-test.nix +++ b/nix/.stack.nix/cardano-explorer-db-test.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,38 +52,40 @@ synopsis = "A block explorer for the Cardano chain"; description = "Code for the Cardano Block Explorer that is shared between the\ncardano-explorer-db-node and the cardano-explorer web application."; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.aeson) - (hsPkgs.base) - (hsPkgs.base16-bytestring) - (hsPkgs.bytestring) - (hsPkgs.cardano-explorer-db) - (hsPkgs.conduit) - (hsPkgs.conduit-extra) - (hsPkgs.containers) - (hsPkgs.contra-tracer) - (hsPkgs.directory) - (hsPkgs.esqueleto) - (hsPkgs.extra) - (hsPkgs.fast-logger) - (hsPkgs.filepath) - (hsPkgs.iohk-monitoring) - (hsPkgs.monad-logger) - (hsPkgs.persistent) - (hsPkgs.persistent-postgresql) - (hsPkgs.persistent-template) - (hsPkgs.postgresql-simple) - (hsPkgs.resourcet) - (hsPkgs.scientific) - (hsPkgs.text) - (hsPkgs.template-haskell) - (hsPkgs.time) - (hsPkgs.transformers) - (hsPkgs.unix) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-explorer-db" or (buildDepError "cardano-explorer-db")) + (hsPkgs."conduit" or (buildDepError "conduit")) + (hsPkgs."conduit-extra" or (buildDepError "conduit-extra")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."esqueleto" or (buildDepError "esqueleto")) + (hsPkgs."extra" or (buildDepError "extra")) + (hsPkgs."fast-logger" or (buildDepError "fast-logger")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."monad-logger" or (buildDepError "monad-logger")) + (hsPkgs."persistent" or (buildDepError "persistent")) + (hsPkgs."persistent-postgresql" or (buildDepError "persistent-postgresql")) + (hsPkgs."persistent-template" or (buildDepError "persistent-template")) + (hsPkgs."postgresql-simple" or (buildDepError "postgresql-simple")) + (hsPkgs."resourcet" or (buildDepError "resourcet")) + (hsPkgs."scientific" or (buildDepError "scientific")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."template-haskell" or (buildDepError "template-haskell")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."transformers" or (buildDepError "transformers")) + (hsPkgs."unix" or (buildDepError "unix")) ]; + buildable = true; }; }; } // rec { src = (pkgs.lib).mkDefault ../.././cardano-explorer-db/test; } \ No newline at end of file diff --git a/nix/.stack.nix/cardano-explorer-db.nix b/nix/.stack.nix/cardano-explorer-db.nix index 7a8ec07..be2171e 100644 --- a/nix/.stack.nix/cardano-explorer-db.nix +++ b/nix/.stack.nix/cardano-explorer-db.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,76 +52,81 @@ synopsis = "A block explorer for the Cardano chain"; description = "Code for the Cardano Block Explorer that is shared between the\ncardano-explorer-db-node and the cardano-explorer web application."; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.aeson) - (hsPkgs.base) - (hsPkgs.base16-bytestring) - (hsPkgs.bytestring) - (hsPkgs.containers) - (hsPkgs.conduit) - (hsPkgs.conduit-extra) - (hsPkgs.contra-tracer) - (hsPkgs.directory) - (hsPkgs.esqueleto) - (hsPkgs.extra) - (hsPkgs.fast-logger) - (hsPkgs.filepath) - (hsPkgs.iohk-monitoring) - (hsPkgs.monad-logger) - (hsPkgs.persistent) - (hsPkgs.persistent-postgresql) - (hsPkgs.persistent-template) - (hsPkgs.postgresql-simple) - (hsPkgs.resourcet) - (hsPkgs.scientific) - (hsPkgs.text) - (hsPkgs.template-haskell) - (hsPkgs.time) - (hsPkgs.transformers) - (hsPkgs.unix) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."conduit" or (buildDepError "conduit")) + (hsPkgs."conduit-extra" or (buildDepError "conduit-extra")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."esqueleto" or (buildDepError "esqueleto")) + (hsPkgs."extra" or (buildDepError "extra")) + (hsPkgs."fast-logger" or (buildDepError "fast-logger")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."monad-logger" or (buildDepError "monad-logger")) + (hsPkgs."persistent" or (buildDepError "persistent")) + (hsPkgs."persistent-postgresql" or (buildDepError "persistent-postgresql")) + (hsPkgs."persistent-template" or (buildDepError "persistent-template")) + (hsPkgs."postgresql-simple" or (buildDepError "postgresql-simple")) + (hsPkgs."resourcet" or (buildDepError "resourcet")) + (hsPkgs."scientific" or (buildDepError "scientific")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."template-haskell" or (buildDepError "template-haskell")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."transformers" or (buildDepError "transformers")) + (hsPkgs."unix" or (buildDepError "unix")) ]; + buildable = true; }; exes = { "cardano-explorer-db-tool" = { depends = [ - (hsPkgs.base) - (hsPkgs.ansi-terminal) - (hsPkgs.cardano-explorer-db) - (hsPkgs.cardano-ledger) - (hsPkgs.containers) - (hsPkgs.optparse-applicative) - (hsPkgs.persistent) - (hsPkgs.random) - (hsPkgs.text) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."ansi-terminal" or (buildDepError "ansi-terminal")) + (hsPkgs."cardano-explorer-db" or (buildDepError "cardano-explorer-db")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."persistent" or (buildDepError "persistent")) + (hsPkgs."random" or (buildDepError "random")) + (hsPkgs."text" or (buildDepError "text")) ]; + buildable = true; }; }; tests = { "test" = { depends = [ - (hsPkgs.base) - (hsPkgs.aeson) - (hsPkgs.cardano-explorer-db) - (hsPkgs.cardano-ledger) - (hsPkgs.hedgehog) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."cardano-explorer-db" or (buildDepError "cardano-explorer-db")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."hedgehog" or (buildDepError "hedgehog")) ]; + buildable = true; }; "test-db" = { depends = [ - (hsPkgs.base) - (hsPkgs.bytestring) - (hsPkgs.cardano-explorer-db) - (hsPkgs.HUnit) - (hsPkgs.persistent) - (hsPkgs.tasty) - (hsPkgs.tasty-hunit) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.transformers) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-explorer-db" or (buildDepError "cardano-explorer-db")) + (hsPkgs."HUnit" or (buildDepError "HUnit")) + (hsPkgs."persistent" or (buildDepError "persistent")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-hunit" or (buildDepError "tasty-hunit")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."transformers" or (buildDepError "transformers")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/cardano-explorer-node.nix b/nix/.stack.nix/cardano-explorer-node.nix index 8b127a2..ad9f182 100644 --- a/nix/.stack.nix/cardano-explorer-node.nix +++ b/nix/.stack.nix/cardano-explorer-node.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,80 +52,87 @@ synopsis = "The DB node for the Cardano Block Explorer"; description = "A Cardano node that follows the Cardano chain and inserts data from the\nchain into a PostgresQL database."; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.base16-bytestring) - (hsPkgs.bytestring) - (hsPkgs.cardano-binary) - (hsPkgs.cardano-config) - (hsPkgs.cardano-crypto) - (hsPkgs.cardano-crypto-wrapper) - (hsPkgs.cardano-explorer-db) - (hsPkgs.cardano-ledger) - (hsPkgs.cardano-node) - (hsPkgs.cardano-prelude) - (hsPkgs.cardano-shell) - (hsPkgs.cborg) - (hsPkgs.containers) - (hsPkgs.cryptonite) - (hsPkgs.extra) - (hsPkgs.formatting) - (hsPkgs.io-sim-classes) - (hsPkgs.iohk-monitoring) - (hsPkgs.memory) - (hsPkgs.monad-logger) - (hsPkgs.optparse-applicative) - (hsPkgs.network) - (hsPkgs.ouroboros-consensus) - (hsPkgs.ouroboros-network) - (hsPkgs.persistent) - (hsPkgs.prometheus) - (hsPkgs.reflection) - (hsPkgs.serialise) - (hsPkgs.stm) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.transformers) - (hsPkgs.typed-protocols) - (hsPkgs.typed-protocols-cbor) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-config" or (buildDepError "cardano-config")) + (hsPkgs."cardano-crypto" or (buildDepError "cardano-crypto")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-explorer-db" or (buildDepError "cardano-explorer-db")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-node" or (buildDepError "cardano-node")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-shell" or (buildDepError "cardano-shell")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."extra" or (buildDepError "extra")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."memory" or (buildDepError "memory")) + (hsPkgs."monad-logger" or (buildDepError "monad-logger")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network")) + (hsPkgs."persistent" or (buildDepError "persistent")) + (hsPkgs."prometheus" or (buildDepError "prometheus")) + (hsPkgs."reflection" or (buildDepError "reflection")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."transformers" or (buildDepError "transformers")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) ]; + buildable = true; }; exes = { "cardano-explorer-node" = { depends = [ - (hsPkgs.base) - (hsPkgs.bytestring) - (hsPkgs.cardano-config) - (hsPkgs.cardano-crypto-wrapper) - (hsPkgs.cardano-explorer-db) - (hsPkgs.cardano-explorer-node) - (hsPkgs.cardano-ledger) - (hsPkgs.cardano-node) - (hsPkgs.cardano-prelude) - (hsPkgs.cardano-binary) - (hsPkgs.cborg) - (hsPkgs.formatting) - (hsPkgs.cardano-shell) - (hsPkgs.ouroboros-consensus) - (hsPkgs.io-sim-classes) - (hsPkgs.iohk-monitoring) - (hsPkgs.network) - (hsPkgs.optparse-applicative) - (hsPkgs.ouroboros-network) - (hsPkgs.reflection) - (hsPkgs.serialise) - (hsPkgs.text) - (hsPkgs.typed-protocols) - (hsPkgs.typed-protocols-cbor) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-config" or (buildDepError "cardano-config")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-explorer-db" or (buildDepError "cardano-explorer-db")) + (hsPkgs."cardano-explorer-node" or (buildDepError "cardano-explorer-node")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-node" or (buildDepError "cardano-node")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."cardano-shell" or (buildDepError "cardano-shell")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network")) + (hsPkgs."reflection" or (buildDepError "reflection")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) ]; + buildable = true; }; }; tests = { "test" = { - depends = [ (hsPkgs.base) (hsPkgs.cardano-explorer-node) ]; + depends = [ + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."cardano-explorer-node" or (buildDepError "cardano-explorer-node")) + ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/cardano-explorer.nix b/nix/.stack.nix/cardano-explorer.nix index 77ef244..e2bdfd9 100644 --- a/nix/.stack.nix/cardano-explorer.nix +++ b/nix/.stack.nix/cardano-explorer.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,74 +52,87 @@ synopsis = "A Block Explorer for the Cardano network"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.QuickCheck) - (hsPkgs.aeson) - (hsPkgs.base16-bytestring) - (hsPkgs.bytestring) - (hsPkgs.cardano-crypto-class) - (hsPkgs.cardano-explorer-db) - (hsPkgs.cardano-ledger) - (hsPkgs.constraints) - (hsPkgs.deepseq) - (hsPkgs.esqueleto) - (hsPkgs.formatting) - (hsPkgs.generics-sop) - (hsPkgs.hashable) - (hsPkgs.memory) - (hsPkgs.monad-logger) - (hsPkgs.mtl) - (hsPkgs.persistent) - (hsPkgs.persistent-postgresql) - (hsPkgs.servant) - (hsPkgs.servant-server) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.transformers) - (hsPkgs.transformers-except) - (hsPkgs.warp) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-crypto-class" or (buildDepError "cardano-crypto-class")) + (hsPkgs."cardano-explorer-db" or (buildDepError "cardano-explorer-db")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."constraints" or (buildDepError "constraints")) + (hsPkgs."deepseq" or (buildDepError "deepseq")) + (hsPkgs."esqueleto" or (buildDepError "esqueleto")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."generics-sop" or (buildDepError "generics-sop")) + (hsPkgs."hashable" or (buildDepError "hashable")) + (hsPkgs."memory" or (buildDepError "memory")) + (hsPkgs."monad-logger" or (buildDepError "monad-logger")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."persistent" or (buildDepError "persistent")) + (hsPkgs."persistent-postgresql" or (buildDepError "persistent-postgresql")) + (hsPkgs."servant" or (buildDepError "servant")) + (hsPkgs."servant-server" or (buildDepError "servant-server")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."transformers" or (buildDepError "transformers")) + (hsPkgs."transformers-except" or (buildDepError "transformers-except")) + (hsPkgs."warp" or (buildDepError "warp")) ]; + buildable = true; }; exes = { "cardano-explorer" = { - depends = [ (hsPkgs.base) (hsPkgs.cardano-explorer) (hsPkgs.Cabal) ]; + depends = [ + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."cardano-explorer" or (buildDepError "cardano-explorer")) + (hsPkgs."Cabal" or (buildDepError "Cabal")) + ]; + buildable = true; }; "cardano-webapi-compare" = { depends = [ - (hsPkgs.base) - (hsPkgs.async) - (hsPkgs.cardano-explorer) - (hsPkgs.Diff) - (hsPkgs.bytestring) - (hsPkgs.http-conduit) - (hsPkgs.text) - (hsPkgs.text-ansi) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."cardano-explorer" or (buildDepError "cardano-explorer")) + (hsPkgs."Diff" or (buildDepError "Diff")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."http-conduit" or (buildDepError "http-conduit")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."text-ansi" or (buildDepError "text-ansi")) ]; + buildable = true; }; "cardano-mock-explorer" = { - depends = [ (hsPkgs.base) (hsPkgs.cardano-explorer) ]; + depends = [ + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."cardano-explorer" or (buildDepError "cardano-explorer")) + ]; + buildable = true; }; }; tests = { "test" = { depends = [ - (hsPkgs.base) - (hsPkgs.bytestring) - (hsPkgs.cardano-explorer) - (hsPkgs.cardano-explorer-db) - (hsPkgs.cardano-explorer-db-test) - (hsPkgs.containers) - (hsPkgs.monad-logger) - (hsPkgs.persistent-postgresql) - (hsPkgs.tasty) - (hsPkgs.tasty-hunit) - (hsPkgs.text) - (hsPkgs.transformers) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-explorer" or (buildDepError "cardano-explorer")) + (hsPkgs."cardano-explorer-db" or (buildDepError "cardano-explorer-db")) + (hsPkgs."cardano-explorer-db-test" or (buildDepError "cardano-explorer-db-test")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."monad-logger" or (buildDepError "monad-logger")) + (hsPkgs."persistent-postgresql" or (buildDepError "persistent-postgresql")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-hunit" or (buildDepError "tasty-hunit")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."transformers" or (buildDepError "transformers")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/cardano-ledger-test.nix b/nix/.stack.nix/cardano-ledger-test.nix index d43e33b..e87958e 100644 --- a/nix/.stack.nix/cardano-ledger-test.nix +++ b/nix/.stack.nix/cardano-ledger-test.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { development = false; }; package = { @@ -13,35 +52,37 @@ synopsis = "Test helpers from cardano-ledger exposed to other packages"; description = "Test helpers from cardano-ledger exposed to other packages"; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.base16-bytestring) - (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.directory) - (hsPkgs.filepath) - (hsPkgs.formatting) - (hsPkgs.hedgehog) - (hsPkgs.mtl) - (hsPkgs.optparse-applicative) - (hsPkgs.tasty) - (hsPkgs.tasty-hedgehog) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.vector) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-binary-test" or (buildDepError "cardano-binary-test")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-crypto" or (buildDepError "cardano-crypto")) + (hsPkgs."cardano-crypto-test" or (buildDepError "cardano-crypto-test")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-prelude-test" or (buildDepError "cardano-prelude-test")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."hedgehog" or (buildDepError "hedgehog")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-hedgehog" or (buildDepError "tasty-hedgehog")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."vector" or (buildDepError "vector")) ]; + buildable = true; }; }; } // { diff --git a/nix/.stack.nix/cardano-ledger.nix b/nix/.stack.nix/cardano-ledger.nix index fc8fff9..e636f9b 100644 --- a/nix/.stack.nix/cardano-ledger.nix +++ b/nix/.stack.nix/cardano-ledger.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { development = false; test-normal-form = false; }; package = { @@ -13,104 +52,108 @@ synopsis = "The blockchain layer of Cardano"; description = "The blockchain layer of Cardano"; buildType = "Simple"; + isLocal = true; }; 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.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) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."base58-bytestring" or (buildDepError "base58-bytestring")) + (hsPkgs."base64-bytestring-type" or (buildDepError "base64-bytestring-type")) + (hsPkgs."bimap" or (buildDepError "bimap")) + (hsPkgs."binary" or (buildDepError "binary")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."canonical-json" or (buildDepError "canonical-json")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-crypto" or (buildDepError "cardano-crypto")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."concurrency" or (buildDepError "concurrency")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."Cabal" or (buildDepError "Cabal")) + (hsPkgs."deepseq" or (buildDepError "deepseq")) + (hsPkgs."digest" or (buildDepError "digest")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."megaparsec" or (buildDepError "megaparsec")) + (hsPkgs."memory" or (buildDepError "memory")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."resourcet" or (buildDepError "resourcet")) + (hsPkgs."streaming" or (buildDepError "streaming")) + (hsPkgs."streaming-binary" or (buildDepError "streaming-binary")) + (hsPkgs."streaming-bytestring" or (buildDepError "streaming-bytestring")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."vector" or (buildDepError "vector")) ]; + buildable = true; }; 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) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bimap" or (buildDepError "bimap")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-binary-test" or (buildDepError "cardano-binary-test")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-crypto" or (buildDepError "cardano-crypto")) + (hsPkgs."cardano-crypto-test" or (buildDepError "cardano-crypto-test")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-prelude-test" or (buildDepError "cardano-prelude-test")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."cs-blockchain" or (buildDepError "cs-blockchain")) + (hsPkgs."cs-ledger" or (buildDepError "cs-ledger")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."generic-monoid" or (buildDepError "generic-monoid")) + (hsPkgs."hedgehog" or (buildDepError "hedgehog")) + (hsPkgs."lens" or (buildDepError "lens")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."resourcet" or (buildDepError "resourcet")) + (hsPkgs."small-steps" or (buildDepError "small-steps")) + (hsPkgs."streaming" or (buildDepError "streaming")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-hedgehog" or (buildDepError "tasty-hedgehog")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."vector" or (buildDepError "vector")) ]; + buildable = true; }; "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) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-crypto-test" or (buildDepError "cardano-crypto-test")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-prelude-test" or (buildDepError "cardano-prelude-test")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."hedgehog" or (buildDepError "hedgehog")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."resourcet" or (buildDepError "resourcet")) + (hsPkgs."silently" or (buildDepError "silently")) + (hsPkgs."streaming" or (buildDepError "streaming")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-hedgehog" or (buildDepError "tasty-hedgehog")) ]; + buildable = if !flags.test-normal-form then false else true; }; }; }; diff --git a/nix/.stack.nix/cardano-node.nix b/nix/.stack.nix/cardano-node.nix index 89f1dfa..b2a8ad6 100644 --- a/nix/.stack.nix/cardano-node.nix +++ b/nix/.stack.nix/cardano-node.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,194 +52,209 @@ synopsis = ""; description = "The cardano full node"; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.aeson) - (hsPkgs.async) - (hsPkgs.base) - (hsPkgs.binary) - (hsPkgs.bytestring) - (hsPkgs.canonical-json) - (hsPkgs.cardano-binary) - (hsPkgs.cardano-config) - (hsPkgs.cardano-crypto) - (hsPkgs.cardano-crypto-class) - (hsPkgs.cardano-crypto-wrapper) - (hsPkgs.cardano-ledger) - (hsPkgs.cardano-ledger-test) - (hsPkgs.cardano-prelude) - (hsPkgs.cardano-prelude-test) - (hsPkgs.cardano-shell) - (hsPkgs.containers) - (hsPkgs.contra-tracer) - (hsPkgs.cborg) - (hsPkgs.containers) - (hsPkgs.cryptonite) - (hsPkgs.directory) - (hsPkgs.file-embed) - (hsPkgs.filepath) - (hsPkgs.formatting) - (hsPkgs.io-sim-classes) - (hsPkgs.iohk-monitoring) - (hsPkgs.iproute) - (hsPkgs.lens) - (hsPkgs.memory) - (hsPkgs.mtl) - (hsPkgs.network) - (hsPkgs.network-mux) - (hsPkgs.optparse-applicative) - (hsPkgs.ouroboros-consensus) - (hsPkgs.ouroboros-network) - (hsPkgs.process) - (hsPkgs.pvss) - (hsPkgs.safe-exceptions) - (hsPkgs.serialise) - (hsPkgs.stm) - (hsPkgs.string-conv) - (hsPkgs.template-haskell) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.transformers) - (hsPkgs.transformers-except) - (hsPkgs.typed-protocols) - (hsPkgs.typed-protocols-cbor) - (hsPkgs.utf8-string) - (hsPkgs.vector) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."binary" or (buildDepError "binary")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."canonical-json" or (buildDepError "canonical-json")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-config" or (buildDepError "cardano-config")) + (hsPkgs."cardano-crypto" or (buildDepError "cardano-crypto")) + (hsPkgs."cardano-crypto-class" or (buildDepError "cardano-crypto-class")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-ledger-test" or (buildDepError "cardano-ledger-test")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-prelude-test" or (buildDepError "cardano-prelude-test")) + (hsPkgs."cardano-shell" or (buildDepError "cardano-shell")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."file-embed" or (buildDepError "file-embed")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."iproute" or (buildDepError "iproute")) + (hsPkgs."lens" or (buildDepError "lens")) + (hsPkgs."memory" or (buildDepError "memory")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."network-mux" or (buildDepError "network-mux")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network")) + (hsPkgs."process" or (buildDepError "process")) + (hsPkgs."pvss" or (buildDepError "pvss")) + (hsPkgs."safe-exceptions" or (buildDepError "safe-exceptions")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."string-conv" or (buildDepError "string-conv")) + (hsPkgs."template-haskell" or (buildDepError "template-haskell")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."transformers" or (buildDepError "transformers")) + (hsPkgs."transformers-except" or (buildDepError "transformers-except")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) + (hsPkgs."utf8-string" or (buildDepError "utf8-string")) + (hsPkgs."vector" or (buildDepError "vector")) ] ++ (if system.isWindows - then [ (hsPkgs.Win32) ] - else [ (hsPkgs.unix) (hsPkgs.brick) (hsPkgs.vty) ]); + then [ (hsPkgs."Win32" or (buildDepError "Win32")) ] + else [ + (hsPkgs."unix" or (buildDepError "unix")) + (hsPkgs."brick" or (buildDepError "brick")) + (hsPkgs."vty" or (buildDepError "vty")) + ]); + buildable = true; }; exes = { "cardano-node" = { depends = [ - (hsPkgs.base) - (hsPkgs.aeson) - (hsPkgs.bytestring) - (hsPkgs.cardano-config) - (hsPkgs.cardano-crypto-wrapper) - (hsPkgs.cardano-ledger) - (hsPkgs.cardano-ledger-test) - (hsPkgs.cardano-node) - (hsPkgs.cardano-prelude) - (hsPkgs.cardano-shell) - (hsPkgs.cborg) - (hsPkgs.containers) - (hsPkgs.contra-tracer) - (hsPkgs.cryptonite) - (hsPkgs.directory) - (hsPkgs.formatting) - (hsPkgs.io-sim-classes) - (hsPkgs.iohk-monitoring) - (hsPkgs.iproute) - (hsPkgs.lens) - (hsPkgs.mtl) - (hsPkgs.network) - (hsPkgs.ouroboros-network) - (hsPkgs.ouroboros-consensus) - (hsPkgs.optparse-applicative) - (hsPkgs.safe-exceptions) - (hsPkgs.stm) - (hsPkgs.text) - (hsPkgs.time) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-config" or (buildDepError "cardano-config")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-ledger-test" or (buildDepError "cardano-ledger-test")) + (hsPkgs."cardano-node" or (buildDepError "cardano-node")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-shell" or (buildDepError "cardano-shell")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."iproute" or (buildDepError "iproute")) + (hsPkgs."lens" or (buildDepError "lens")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."safe-exceptions" or (buildDepError "safe-exceptions")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) ] ++ (if system.isWindows - then [ (hsPkgs.Win32) ] - else [ (hsPkgs.unix) ]); + then [ (hsPkgs."Win32" or (buildDepError "Win32")) ] + else [ (hsPkgs."unix" or (buildDepError "unix")) ]); + buildable = true; }; "trace-acceptor" = { depends = [ - (hsPkgs.base) - (hsPkgs.cardano-config) - (hsPkgs.cardano-node) - (hsPkgs.cardano-prelude) - (hsPkgs.cardano-shell) - (hsPkgs.contra-tracer) - (hsPkgs.io-sim-classes) - (hsPkgs.iohk-monitoring) - (hsPkgs.ouroboros-network) - (hsPkgs.ouroboros-consensus) - (hsPkgs.typed-protocols) - (hsPkgs.typed-protocols-cbor) - (hsPkgs.bytestring) - (hsPkgs.iproute) - (hsPkgs.network) - (hsPkgs.optparse-applicative) - (hsPkgs.serialise) - (hsPkgs.text) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."cardano-config" or (buildDepError "cardano-config")) + (hsPkgs."cardano-node" or (buildDepError "cardano-node")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-shell" or (buildDepError "cardano-shell")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."iproute" or (buildDepError "iproute")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."text" or (buildDepError "text")) ]; + buildable = true; }; "wallet-client" = { depends = [ - (hsPkgs.base) - (hsPkgs.cardano-config) - (hsPkgs.cardano-ledger) - (hsPkgs.cardano-ledger-test) - (hsPkgs.cardano-node) - (hsPkgs.cardano-prelude) - (hsPkgs.cardano-shell) - (hsPkgs.contra-tracer) - (hsPkgs.io-sim-classes) - (hsPkgs.iohk-monitoring) - (hsPkgs.ouroboros-network) - (hsPkgs.ouroboros-consensus) - (hsPkgs.typed-protocols) - (hsPkgs.typed-protocols-cbor) - (hsPkgs.bytestring) - (hsPkgs.network) - (hsPkgs.optparse-applicative) - (hsPkgs.serialise) - (hsPkgs.text) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."cardano-config" or (buildDepError "cardano-config")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-ledger-test" or (buildDepError "cardano-ledger-test")) + (hsPkgs."cardano-node" or (buildDepError "cardano-node")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-shell" or (buildDepError "cardano-shell")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."text" or (buildDepError "text")) ] ++ (if system.isWindows - then [ (hsPkgs.Win32) ] - else [ (hsPkgs.unix) ]); + then [ (hsPkgs."Win32" or (buildDepError "Win32")) ] + else [ (hsPkgs."unix" or (buildDepError "unix")) ]); + buildable = true; }; "cardano-cli" = { depends = [ - (hsPkgs.base) - (hsPkgs.cardano-config) - (hsPkgs.cardano-binary) - (hsPkgs.cardano-crypto-wrapper) - (hsPkgs.cardano-ledger) - (hsPkgs.cardano-prelude) - (hsPkgs.cardano-node) - (hsPkgs.optparse-applicative) - (hsPkgs.ouroboros-consensus) - (hsPkgs.safe-exceptions) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.transformers-except) - (hsPkgs.transformers) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."cardano-config" or (buildDepError "cardano-config")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-node" or (buildDepError "cardano-node")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."safe-exceptions" or (buildDepError "safe-exceptions")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."transformers-except" or (buildDepError "transformers-except")) + (hsPkgs."transformers" or (buildDepError "transformers")) ]; + buildable = true; }; "chairman" = { depends = [ - (hsPkgs.base) - (hsPkgs.async) - (hsPkgs.bytestring) - (hsPkgs.cardano-config) - (hsPkgs.containers) - (hsPkgs.contra-tracer) - (hsPkgs.cardano-node) - (hsPkgs.cardano-shell) - (hsPkgs.io-sim-classes) - (hsPkgs.network) - (hsPkgs.network-mux) - (hsPkgs.optparse-applicative) - (hsPkgs.ouroboros-consensus) - (hsPkgs.ouroboros-network) - (hsPkgs.serialise) - (hsPkgs.text) - (hsPkgs.typed-protocols) - (hsPkgs.typed-protocols-cbor) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-config" or (buildDepError "cardano-config")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."cardano-node" or (buildDepError "cardano-node")) + (hsPkgs."cardano-shell" or (buildDepError "cardano-shell")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."network-mux" or (buildDepError "network-mux")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) ] ++ (if system.isWindows - then [ (hsPkgs.Win32) ] - else [ (hsPkgs.unix) ]); + then [ (hsPkgs."Win32" or (buildDepError "Win32")) ] + else [ (hsPkgs."unix" or (buildDepError "unix")) ]); + buildable = true; }; }; tests = { "cardano-node-test" = { - depends = [ (hsPkgs.base) (hsPkgs.cardano-prelude) ]; + depends = [ + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/cardano-prelude-test.nix b/nix/.stack.nix/cardano-prelude-test.nix index f0f5aa7..d4a3740 100644 --- a/nix/.stack.nix/cardano-prelude-test.nix +++ b/nix/.stack.nix/cardano-prelude-test.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { development = false; }; package = { @@ -13,30 +52,32 @@ synopsis = "Utility types and functions for testing Cardano"; description = "Utility types and functions for testing Cardano"; buildType = "Simple"; + isLocal = true; }; 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) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."aeson-pretty" or (buildDepError "aeson-pretty")) + (hsPkgs."attoparsec" or (buildDepError "attoparsec")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."canonical-json" or (buildDepError "canonical-json")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."hedgehog" or (buildDepError "hedgehog")) + (hsPkgs."hspec" or (buildDepError "hspec")) + (hsPkgs."pretty-show" or (buildDepError "pretty-show")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."quickcheck-instances" or (buildDepError "quickcheck-instances")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."template-haskell" or (buildDepError "template-haskell")) + (hsPkgs."time" or (buildDepError "time")) ]; + buildable = true; }; }; } // { diff --git a/nix/.stack.nix/cardano-prelude.nix b/nix/.stack.nix/cardano-prelude.nix index 1a3565f..cf5a851 100644 --- a/nix/.stack.nix/cardano-prelude.nix +++ b/nix/.stack.nix/cardano-prelude.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { development = false; }; package = { @@ -13,58 +52,61 @@ synopsis = "A Prelude replacement for the Cardano project"; description = "A Prelude replacement for the Cardano project"; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.aeson) - (hsPkgs.array) - (hsPkgs.base16-bytestring) - (hsPkgs.bytestring) - (hsPkgs.canonical-json) - (hsPkgs.cborg) - (hsPkgs.containers) - (hsPkgs.formatting) - (hsPkgs.ghc-heap) - (hsPkgs.ghc-prim) - (hsPkgs.hashable) - (hsPkgs.integer-gmp) - (hsPkgs.mtl) - (hsPkgs.nonempty-containers) - (hsPkgs.protolude) - (hsPkgs.tagged) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.vector) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."array" or (buildDepError "array")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."canonical-json" or (buildDepError "canonical-json")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."ghc-heap" or (buildDepError "ghc-heap")) + (hsPkgs."ghc-prim" or (buildDepError "ghc-prim")) + (hsPkgs."hashable" or (buildDepError "hashable")) + (hsPkgs."integer-gmp" or (buildDepError "integer-gmp")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."nonempty-containers" or (buildDepError "nonempty-containers")) + (hsPkgs."protolude" or (buildDepError "protolude")) + (hsPkgs."tagged" or (buildDepError "tagged")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."vector" or (buildDepError "vector")) ]; + buildable = true; }; tests = { "cardano-prelude-test" = { 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.ghc-heap) - (hsPkgs.ghc-prim) - (hsPkgs.hedgehog) - (hsPkgs.hspec) - (hsPkgs.pretty-show) - (hsPkgs.QuickCheck) - (hsPkgs.quickcheck-instances) - (hsPkgs.random) - (hsPkgs.text) - (hsPkgs.template-haskell) - (hsPkgs.time) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."aeson-pretty" or (buildDepError "aeson-pretty")) + (hsPkgs."attoparsec" or (buildDepError "attoparsec")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."canonical-json" or (buildDepError "canonical-json")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."ghc-heap" or (buildDepError "ghc-heap")) + (hsPkgs."ghc-prim" or (buildDepError "ghc-prim")) + (hsPkgs."hedgehog" or (buildDepError "hedgehog")) + (hsPkgs."hspec" or (buildDepError "hspec")) + (hsPkgs."pretty-show" or (buildDepError "pretty-show")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."quickcheck-instances" or (buildDepError "quickcheck-instances")) + (hsPkgs."random" or (buildDepError "random")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."template-haskell" or (buildDepError "template-haskell")) + (hsPkgs."time" or (buildDepError "time")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/cardano-shell.nix b/nix/.stack.nix/cardano-shell.nix index 504dbe2..8e7e4e4 100644 --- a/nix/.stack.nix/cardano-shell.nix +++ b/nix/.stack.nix/cardano-shell.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,51 +52,55 @@ synopsis = ""; description = "Please see the README on GitHub at "; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.aeson) - (hsPkgs.base) - (hsPkgs.binary) - (hsPkgs.bytestring) - (hsPkgs.Cabal) - (hsPkgs.cardano-prelude) - (hsPkgs.concurrency) - (hsPkgs.containers) - (hsPkgs.directory) - (hsPkgs.formatting) - (hsPkgs.process) - (hsPkgs.QuickCheck) - (hsPkgs.safe-exceptions) - (hsPkgs.async) - (hsPkgs.text) - (hsPkgs.transformers) - ] ++ (pkgs.lib).optional (system.isWindows) (hsPkgs.Win32); + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."binary" or (buildDepError "binary")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."Cabal" or (buildDepError "Cabal")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."concurrency" or (buildDepError "concurrency")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."process" or (buildDepError "process")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."safe-exceptions" or (buildDepError "safe-exceptions")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."transformers" or (buildDepError "transformers")) + ] ++ (pkgs.lib).optional (system.isWindows) (hsPkgs."Win32" or (buildDepError "Win32")); + buildable = true; }; exes = { "node-ipc" = { depends = [ - (hsPkgs.base) - (hsPkgs.cardano-shell) - (hsPkgs.cardano-prelude) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."cardano-shell" or (buildDepError "cardano-shell")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) ]; + buildable = true; }; }; tests = { "cardano-shell-test" = { depends = [ - (hsPkgs.aeson) - (hsPkgs.base) - (hsPkgs.cardano-shell) - (hsPkgs.cardano-prelude) - (hsPkgs.process) - (hsPkgs.yaml) - (hsPkgs.QuickCheck) - (hsPkgs.quickcheck-state-machine) - (hsPkgs.tree-diff) - (hsPkgs.hspec) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."cardano-shell" or (buildDepError "cardano-shell")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."process" or (buildDepError "process")) + (hsPkgs."yaml" or (buildDepError "yaml")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."quickcheck-state-machine" or (buildDepError "quickcheck-state-machine")) + (hsPkgs."tree-diff" or (buildDepError "tree-diff")) + (hsPkgs."hspec" or (buildDepError "hspec")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/cardano-sl-x509.nix b/nix/.stack.nix/cardano-sl-x509.nix index 6299a23..cc0619a 100644 --- a/nix/.stack.nix/cardano-sl-x509.nix +++ b/nix/.stack.nix/cardano-sl-x509.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,42 +52,45 @@ synopsis = "Tool-suite for generating x509 certificates specialized for RSA with SHA-256"; description = "See README"; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.aeson) - (hsPkgs.asn1-encoding) - (hsPkgs.asn1-types) - (hsPkgs.base64-bytestring) - (hsPkgs.bytestring) - (hsPkgs.cardano-prelude) - (hsPkgs.cryptonite) - (hsPkgs.data-default-class) - (hsPkgs.directory) - (hsPkgs.exceptions) - (hsPkgs.filepath) - (hsPkgs.hourglass) - (hsPkgs.ip) - (hsPkgs.text) - (hsPkgs.unordered-containers) - (hsPkgs.x509) - (hsPkgs.x509-store) - (hsPkgs.x509-validation) - (hsPkgs.yaml) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."asn1-encoding" or (buildDepError "asn1-encoding")) + (hsPkgs."asn1-types" or (buildDepError "asn1-types")) + (hsPkgs."base64-bytestring" or (buildDepError "base64-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."data-default-class" or (buildDepError "data-default-class")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."exceptions" or (buildDepError "exceptions")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."hourglass" or (buildDepError "hourglass")) + (hsPkgs."ip" or (buildDepError "ip")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."unordered-containers" or (buildDepError "unordered-containers")) + (hsPkgs."x509" or (buildDepError "x509")) + (hsPkgs."x509-store" or (buildDepError "x509-store")) + (hsPkgs."x509-validation" or (buildDepError "x509-validation")) + (hsPkgs."yaml" or (buildDepError "yaml")) ]; + buildable = true; }; tests = { "cardano-sl-x509-test" = { depends = [ - (hsPkgs.base) - (hsPkgs.QuickCheck) - (hsPkgs.cardano-prelude) - (hsPkgs.cardano-sl-x509) - (hsPkgs.exceptions) - (hsPkgs.hedgehog) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cardano-sl-x509" or (buildDepError "cardano-sl-x509")) + (hsPkgs."exceptions" or (buildDepError "exceptions")) + (hsPkgs."hedgehog" or (buildDepError "hedgehog")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/contra-tracer.nix b/nix/.stack.nix/contra-tracer.nix index b347974..4d8f969 100644 --- a/nix/.stack.nix/contra-tracer.nix +++ b/nix/.stack.nix/contra-tracer.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,12 +52,14 @@ synopsis = "A simple interface for logging, tracing or monitoring."; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - ] ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).lt "8.5") (hsPkgs.contravariant); + (hsPkgs."base" or (buildDepError "base")) + ] ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).lt "8.5") (hsPkgs."contravariant" or (buildDepError "contravariant")); + buildable = true; }; }; } // { diff --git a/nix/.stack.nix/default.nix b/nix/.stack.nix/default.nix index 284c24d..0c0e1db 100644 --- a/nix/.stack.nix/default.nix +++ b/nix/.stack.nix/default.nix @@ -23,13 +23,13 @@ "word-wrap" = (((hackage.word-wrap)."0.4.1").revisions).default; "transformers-except" = (((hackage.transformers-except)."0.1.1").revisions).default; "text-ansi" = (((hackage.text-ansi)."0.1.0").revisions).default; + "Diff" = (((hackage.Diff)."0.4.0").revisions).default; "base58-bytestring" = (((hackage.base58-bytestring)."0.1.0").revisions).default; "hedgehog" = (((hackage.hedgehog)."1.0").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; "cborg" = (((hackage.cborg)."0.2.2.0").revisions).default; "canonical-json" = (((hackage.canonical-json)."0.6.0.0").revisions).default; - } // { cardano-explorer-db = ./cardano-explorer-db.nix; cardano-explorer-db-test = ./cardano-explorer-db-test.nix; cardano-explorer-node = ./cardano-explorer-node.nix; @@ -67,5 +67,23 @@ compiler.nix-name = "ghc865"; }; resolver = "lts-13.26"; + modules = [ + ({ lib, ... }: + { packages = {}; }) + { + packages = { + "cardano-explorer-node" = { + package = { + ghcOptions = "-Wall -Werror -fwarn-redundant-constraints"; + }; + }; + "cardano-explorer-db" = { + package = { + ghcOptions = "-Wall -Werror -fwarn-redundant-constraints"; + }; + }; + }; + } + ]; compiler = "ghc-8.6.5"; } \ No newline at end of file diff --git a/nix/.stack.nix/io-sim-classes.nix b/nix/.stack.nix/io-sim-classes.nix index c0842c7..02048f6 100644 --- a/nix/.stack.nix/io-sim-classes.nix +++ b/nix/.stack.nix/io-sim-classes.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { checktvarinvariant = false; }; package = { @@ -13,17 +52,19 @@ synopsis = "Type classes for concurrency with STM, ST and timing"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.async) - (hsPkgs.bytestring) - (hsPkgs.mtl) - (hsPkgs.stm) - (hsPkgs.time) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."time" or (buildDepError "time")) ]; + buildable = true; }; }; } // { diff --git a/nix/.stack.nix/iohk-monitoring.nix b/nix/.stack.nix/iohk-monitoring.nix index 3f581b5..d46028e 100644 --- a/nix/.stack.nix/iohk-monitoring.nix +++ b/nix/.stack.nix/iohk-monitoring.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { disable-observables = false; performance-test-queue = false; }; package = { @@ -13,80 +52,83 @@ synopsis = "logging, benchmarking and monitoring framework"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.contra-tracer) - (hsPkgs.aeson) - (hsPkgs.array) - (hsPkgs.async) - (hsPkgs.async-timer) - (hsPkgs.attoparsec) - (hsPkgs.auto-update) - (hsPkgs.base64-bytestring) - (hsPkgs.bytestring) - (hsPkgs.clock) - (hsPkgs.containers) - (hsPkgs.contravariant) - (hsPkgs.directory) - (hsPkgs.filepath) - (hsPkgs.katip) - (hsPkgs.lens) - (hsPkgs.mtl) - (hsPkgs.safe) - (hsPkgs.safe-exceptions) - (hsPkgs.scientific) - (hsPkgs.stm) - (hsPkgs.template-haskell) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.time-units) - (hsPkgs.transformers) - (hsPkgs.unordered-containers) - (hsPkgs.vector) - (hsPkgs.yaml) - (hsPkgs.libyaml) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."array" or (buildDepError "array")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."async-timer" or (buildDepError "async-timer")) + (hsPkgs."attoparsec" or (buildDepError "attoparsec")) + (hsPkgs."auto-update" or (buildDepError "auto-update")) + (hsPkgs."base64-bytestring" or (buildDepError "base64-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."clock" or (buildDepError "clock")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contravariant" or (buildDepError "contravariant")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."katip" or (buildDepError "katip")) + (hsPkgs."lens" or (buildDepError "lens")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."safe" or (buildDepError "safe")) + (hsPkgs."safe-exceptions" or (buildDepError "safe-exceptions")) + (hsPkgs."scientific" or (buildDepError "scientific")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."template-haskell" or (buildDepError "template-haskell")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."time-units" or (buildDepError "time-units")) + (hsPkgs."transformers" or (buildDepError "transformers")) + (hsPkgs."unordered-containers" or (buildDepError "unordered-containers")) + (hsPkgs."vector" or (buildDepError "vector")) + (hsPkgs."yaml" or (buildDepError "yaml")) + (hsPkgs."libyaml" or (buildDepError "libyaml")) ] ++ (if system.isWindows - then [ (hsPkgs.Win32) ] - else [ (hsPkgs.unix) ]); + then [ (hsPkgs."Win32" or (buildDepError "Win32")) ] + else [ (hsPkgs."unix" or (buildDepError "unix")) ]); + buildable = true; }; tests = { "tests" = { depends = [ - (hsPkgs.base) - (hsPkgs.contra-tracer) - (hsPkgs.iohk-monitoring) - (hsPkgs.aeson) - (hsPkgs.array) - (hsPkgs.async) - (hsPkgs.bytestring) - (hsPkgs.clock) - (hsPkgs.containers) - (hsPkgs.directory) - (hsPkgs.filepath) - (hsPkgs.mtl) - (hsPkgs.process) - (hsPkgs.QuickCheck) - (hsPkgs.random) - (hsPkgs.semigroups) - (hsPkgs.split) - (hsPkgs.stm) - (hsPkgs.tasty) - (hsPkgs.tasty-hunit) - (hsPkgs.tasty-quickcheck) - (hsPkgs.temporary) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.time-units) - (hsPkgs.transformers) - (hsPkgs.unordered-containers) - (hsPkgs.vector) - (hsPkgs.void) - (hsPkgs.yaml) - (hsPkgs.libyaml) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."array" or (buildDepError "array")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."clock" or (buildDepError "clock")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."process" or (buildDepError "process")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."random" or (buildDepError "random")) + (hsPkgs."semigroups" or (buildDepError "semigroups")) + (hsPkgs."split" or (buildDepError "split")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-hunit" or (buildDepError "tasty-hunit")) + (hsPkgs."tasty-quickcheck" or (buildDepError "tasty-quickcheck")) + (hsPkgs."temporary" or (buildDepError "temporary")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."time-units" or (buildDepError "time-units")) + (hsPkgs."transformers" or (buildDepError "transformers")) + (hsPkgs."unordered-containers" or (buildDepError "unordered-containers")) + (hsPkgs."vector" or (buildDepError "vector")) + (hsPkgs."void" or (buildDepError "void")) + (hsPkgs."yaml" or (buildDepError "yaml")) + (hsPkgs."libyaml" or (buildDepError "libyaml")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/lobemo-backend-aggregation.nix b/nix/.stack.nix/lobemo-backend-aggregation.nix index 86242be..6a66835 100644 --- a/nix/.stack.nix/lobemo-backend-aggregation.nix +++ b/nix/.stack.nix/lobemo-backend-aggregation.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -16,22 +55,24 @@ synopsis = "provides a backend implementation to aggregate traced values"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.iohk-monitoring) - (hsPkgs.aeson) - (hsPkgs.async) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.safe-exceptions) - (hsPkgs.stm) - (hsPkgs.unordered-containers) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."safe-exceptions" or (buildDepError "safe-exceptions")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."unordered-containers" or (buildDepError "unordered-containers")) ] ++ (if system.isWindows - then [ (hsPkgs.Win32) ] - else [ (hsPkgs.unix) ]); + then [ (hsPkgs."Win32" or (buildDepError "Win32")) ] + else [ (hsPkgs."unix" or (buildDepError "unix")) ]); + buildable = true; }; }; } // { diff --git a/nix/.stack.nix/lobemo-backend-editor.nix b/nix/.stack.nix/lobemo-backend-editor.nix index 3a4a3fc..a045be4 100644 --- a/nix/.stack.nix/lobemo-backend-editor.nix +++ b/nix/.stack.nix/lobemo-backend-editor.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,26 +52,28 @@ synopsis = "provides a backend implementation to interactively manage configuration"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.iohk-monitoring) - (hsPkgs.aeson) - (hsPkgs.async) - (hsPkgs.bytestring) - (hsPkgs.directory) - (hsPkgs.filepath) - (hsPkgs.safe) - (hsPkgs.safe-exceptions) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.threepenny-gui) - (hsPkgs.unordered-containers) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."safe" or (buildDepError "safe")) + (hsPkgs."safe-exceptions" or (buildDepError "safe-exceptions")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."threepenny-gui" or (buildDepError "threepenny-gui")) + (hsPkgs."unordered-containers" or (buildDepError "unordered-containers")) ] ++ (if system.isWindows - then [ (hsPkgs.Win32) ] - else [ (hsPkgs.unix) ]); + then [ (hsPkgs."Win32" or (buildDepError "Win32")) ] + else [ (hsPkgs."unix" or (buildDepError "unix")) ]); + buildable = true; }; }; } // { diff --git a/nix/.stack.nix/lobemo-backend-ekg.nix b/nix/.stack.nix/lobemo-backend-ekg.nix index 7089bce..f2d8c56 100644 --- a/nix/.stack.nix/lobemo-backend-ekg.nix +++ b/nix/.stack.nix/lobemo-backend-ekg.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,22 +52,24 @@ synopsis = "provides a backend implementation to EKG"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.iohk-monitoring) - (hsPkgs.aeson) - (hsPkgs.async) - (hsPkgs.ekg) - (hsPkgs.ekg-core) - (hsPkgs.safe-exceptions) - (hsPkgs.stm) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.unordered-containers) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."ekg" or (buildDepError "ekg")) + (hsPkgs."ekg-core" or (buildDepError "ekg-core")) + (hsPkgs."safe-exceptions" or (buildDepError "safe-exceptions")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."unordered-containers" or (buildDepError "unordered-containers")) ]; + buildable = true; }; }; } // { diff --git a/nix/.stack.nix/lobemo-backend-monitoring.nix b/nix/.stack.nix/lobemo-backend-monitoring.nix index 0ab1bfd..29f3c2b 100644 --- a/nix/.stack.nix/lobemo-backend-monitoring.nix +++ b/nix/.stack.nix/lobemo-backend-monitoring.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,59 +52,62 @@ synopsis = "provides a backend implementation for monitoring"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.iohk-monitoring) - (hsPkgs.aeson) - (hsPkgs.async) - (hsPkgs.safe-exceptions) - (hsPkgs.stm) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.unordered-containers) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."safe-exceptions" or (buildDepError "safe-exceptions")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."unordered-containers" or (buildDepError "unordered-containers")) ] ++ (if system.isWindows - then [ (hsPkgs.Win32) ] - else [ (hsPkgs.unix) ]); + then [ (hsPkgs."Win32" or (buildDepError "Win32")) ] + else [ (hsPkgs."unix" or (buildDepError "unix")) ]); + buildable = true; }; tests = { "tests" = { depends = [ - (hsPkgs.base) - (hsPkgs.contra-tracer) - (hsPkgs.iohk-monitoring) - (hsPkgs.lobemo-backend-monitoring) - (hsPkgs.aeson) - (hsPkgs.array) - (hsPkgs.async) - (hsPkgs.bytestring) - (hsPkgs.clock) - (hsPkgs.containers) - (hsPkgs.directory) - (hsPkgs.filepath) - (hsPkgs.mtl) - (hsPkgs.process) - (hsPkgs.QuickCheck) - (hsPkgs.random) - (hsPkgs.semigroups) - (hsPkgs.split) - (hsPkgs.stm) - (hsPkgs.tasty) - (hsPkgs.tasty-hunit) - (hsPkgs.tasty-quickcheck) - (hsPkgs.temporary) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.time-units) - (hsPkgs.transformers) - (hsPkgs.unordered-containers) - (hsPkgs.vector) - (hsPkgs.void) - (hsPkgs.yaml) - (hsPkgs.libyaml) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."lobemo-backend-monitoring" or (buildDepError "lobemo-backend-monitoring")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."array" or (buildDepError "array")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."clock" or (buildDepError "clock")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."process" or (buildDepError "process")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."random" or (buildDepError "random")) + (hsPkgs."semigroups" or (buildDepError "semigroups")) + (hsPkgs."split" or (buildDepError "split")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-hunit" or (buildDepError "tasty-hunit")) + (hsPkgs."tasty-quickcheck" or (buildDepError "tasty-quickcheck")) + (hsPkgs."temporary" or (buildDepError "temporary")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."time-units" or (buildDepError "time-units")) + (hsPkgs."transformers" or (buildDepError "transformers")) + (hsPkgs."unordered-containers" or (buildDepError "unordered-containers")) + (hsPkgs."vector" or (buildDepError "vector")) + (hsPkgs."void" or (buildDepError "void")) + (hsPkgs."yaml" or (buildDepError "yaml")) + (hsPkgs."libyaml" or (buildDepError "libyaml")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/lobemo-scribe-systemd.nix b/nix/.stack.nix/lobemo-scribe-systemd.nix index b32b542..add2b4d 100644 --- a/nix/.stack.nix/lobemo-scribe-systemd.nix +++ b/nix/.stack.nix/lobemo-scribe-systemd.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,24 +52,28 @@ synopsis = "provides a backend for logging to systemd/journal"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = ([ - (hsPkgs.base) - (hsPkgs.iohk-monitoring) - (hsPkgs.aeson) - (hsPkgs.bytestring) - (hsPkgs.katip) - (hsPkgs.text) - (hsPkgs.template-haskell) - (hsPkgs.unordered-containers) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring")) + (hsPkgs."aeson" or (buildDepError "aeson")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."katip" or (buildDepError "katip")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."template-haskell" or (buildDepError "template-haskell")) + (hsPkgs."unordered-containers" or (buildDepError "unordered-containers")) ] ++ (if system.isWindows - then [ (hsPkgs.Win32) ] - else [ (hsPkgs.unix) ])) ++ (pkgs.lib).optionals (system.isLinux) [ - (hsPkgs.hsyslog) - (hsPkgs.libsystemd-journal) + then [ (hsPkgs."Win32" or (buildDepError "Win32")) ] + else [ + (hsPkgs."unix" or (buildDepError "unix")) + ])) ++ (pkgs.lib).optionals (system.isLinux) [ + (hsPkgs."hsyslog" or (buildDepError "hsyslog")) + (hsPkgs."libsystemd-journal" or (buildDepError "libsystemd-journal")) ]; + buildable = true; }; }; } // { diff --git a/nix/.stack.nix/network-mux.nix b/nix/.stack.nix/network-mux.nix index 3f31e06..fb72ee9 100644 --- a/nix/.stack.nix/network-mux.nix +++ b/nix/.stack.nix/network-mux.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { ipv6 = false; }; package = { @@ -13,49 +52,52 @@ synopsis = "Multiplexing library"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.typed-protocols) - (hsPkgs.io-sim-classes) - (hsPkgs.contra-tracer) - (hsPkgs.array) - (hsPkgs.binary) - (hsPkgs.bytestring) - (hsPkgs.cborg) - (hsPkgs.network) - (hsPkgs.process) - (hsPkgs.time) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."array" or (buildDepError "array")) + (hsPkgs."binary" or (buildDepError "binary")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."process" or (buildDepError "process")) + (hsPkgs."time" or (buildDepError "time")) ]; + buildable = true; }; tests = { "test-network-mux" = { depends = [ - (hsPkgs.base) - (hsPkgs.typed-protocols) - (hsPkgs.typed-protocols-cbor) - (hsPkgs.io-sim-classes) - (hsPkgs.io-sim) - (hsPkgs.contra-tracer) - (hsPkgs.array) - (hsPkgs.binary) - (hsPkgs.bytestring) - (hsPkgs.cborg) - (hsPkgs.containers) - (hsPkgs.hashable) - (hsPkgs.network) - (hsPkgs.process) - (hsPkgs.QuickCheck) - (hsPkgs.splitmix) - (hsPkgs.serialise) - (hsPkgs.stm) - (hsPkgs.tasty) - (hsPkgs.tasty-quickcheck) - (hsPkgs.tasty-hunit) - (hsPkgs.time) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."io-sim" or (buildDepError "io-sim")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."array" or (buildDepError "array")) + (hsPkgs."binary" or (buildDepError "binary")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."hashable" or (buildDepError "hashable")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."process" or (buildDepError "process")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."splitmix" or (buildDepError "splitmix")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-quickcheck" or (buildDepError "tasty-quickcheck")) + (hsPkgs."tasty-hunit" or (buildDepError "tasty-hunit")) + (hsPkgs."time" or (buildDepError "time")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/ouroboros-consensus.nix b/nix/.stack.nix/ouroboros-consensus.nix index be804f1..bc4262d 100644 --- a/nix/.stack.nix/ouroboros-consensus.nix +++ b/nix/.stack.nix/ouroboros-consensus.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { checktvarinvariant = false; }; package = { @@ -13,155 +52,160 @@ synopsis = "Consensus layer for the Ouroboros blockchain protocol"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.ouroboros-network) - (hsPkgs.network-mux) - (hsPkgs.typed-protocols) - (hsPkgs.typed-protocols-cbor) - (hsPkgs.io-sim-classes) - (hsPkgs.contra-tracer) - (hsPkgs.cardano-ledger-test) - (hsPkgs.bifunctors) - (hsPkgs.bimap) - (hsPkgs.bytestring) - (hsPkgs.cardano-binary) - (hsPkgs.cardano-crypto-class) - (hsPkgs.cardano-crypto-wrapper) - (hsPkgs.cardano-ledger) - (hsPkgs.cardano-prelude) - (hsPkgs.cborg) - (hsPkgs.constraints) - (hsPkgs.containers) - (hsPkgs.cryptonite) - (hsPkgs.deepseq) - (hsPkgs.directory) - (hsPkgs.filepath) - (hsPkgs.fingertree) - (hsPkgs.formatting) - (hsPkgs.memory) - (hsPkgs.mmorph) - (hsPkgs.mtl) - (hsPkgs.network) - (hsPkgs.pipes) - (hsPkgs.reflection) - (hsPkgs.serialise) - (hsPkgs.stm) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.transformers) - (hsPkgs.vector) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network")) + (hsPkgs."network-mux" or (buildDepError "network-mux")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."cardano-ledger-test" or (buildDepError "cardano-ledger-test")) + (hsPkgs."bifunctors" or (buildDepError "bifunctors")) + (hsPkgs."bimap" or (buildDepError "bimap")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-crypto-class" or (buildDepError "cardano-crypto-class")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."constraints" or (buildDepError "constraints")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."deepseq" or (buildDepError "deepseq")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."filepath" or (buildDepError "filepath")) + (hsPkgs."fingertree" or (buildDepError "fingertree")) + (hsPkgs."formatting" or (buildDepError "formatting")) + (hsPkgs."memory" or (buildDepError "memory")) + (hsPkgs."mmorph" or (buildDepError "mmorph")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."pipes" or (buildDepError "pipes")) + (hsPkgs."reflection" or (buildDepError "reflection")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."transformers" or (buildDepError "transformers")) + (hsPkgs."vector" or (buildDepError "vector")) ] ++ (if system.isWindows - then [ (hsPkgs.Win32) ] - else [ (hsPkgs.unix) ]); + then [ (hsPkgs."Win32" or (buildDepError "Win32")) ] + else [ (hsPkgs."unix" or (buildDepError "unix")) ]); + buildable = true; }; exes = { "byron-db-converter" = { depends = [ - (hsPkgs.base) - (hsPkgs.bytestring) - (hsPkgs.cardano-binary) - (hsPkgs.cardano-crypto-wrapper) - (hsPkgs.cardano-ledger) - (hsPkgs.containers) - (hsPkgs.contra-tracer) - (hsPkgs.directory) - (hsPkgs.mtl) - (hsPkgs.optparse-applicative) - (hsPkgs.optparse-generic) - (hsPkgs.ouroboros-consensus) - (hsPkgs.path) - (hsPkgs.path-io) - (hsPkgs.reflection) - (hsPkgs.resourcet) - (hsPkgs.streaming) - (hsPkgs.text) - (hsPkgs.time) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative")) + (hsPkgs."optparse-generic" or (buildDepError "optparse-generic")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."path" or (buildDepError "path")) + (hsPkgs."path-io" or (buildDepError "path-io")) + (hsPkgs."reflection" or (buildDepError "reflection")) + (hsPkgs."resourcet" or (buildDepError "resourcet")) + (hsPkgs."streaming" or (buildDepError "streaming")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) ]; + buildable = true; }; }; tests = { "test-consensus" = { depends = [ - (hsPkgs.base) - (hsPkgs.base16-bytestring) - (hsPkgs.bytestring) - (hsPkgs.cardano-binary) - (hsPkgs.cardano-crypto-class) - (hsPkgs.cardano-crypto-wrapper) - (hsPkgs.cardano-ledger) - (hsPkgs.cardano-ledger-test) - (hsPkgs.cardano-prelude) - (hsPkgs.typed-protocols) - (hsPkgs.network-mux) - (hsPkgs.ouroboros-network) - (hsPkgs.ouroboros-consensus) - (hsPkgs.io-sim-classes) - (hsPkgs.io-sim) - (hsPkgs.containers) - (hsPkgs.contra-tracer) - (hsPkgs.cryptonite) - (hsPkgs.deepseq) - (hsPkgs.fgl) - (hsPkgs.fingertree) - (hsPkgs.generics-sop) - (hsPkgs.graphviz) - (hsPkgs.mtl) - (hsPkgs.QuickCheck) - (hsPkgs.quickcheck-state-machine) - (hsPkgs.random) - (hsPkgs.reflection) - (hsPkgs.serialise) - (hsPkgs.tasty) - (hsPkgs.tasty-hunit) - (hsPkgs.tasty-quickcheck) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.tree-diff) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-crypto-class" or (buildDepError "cardano-crypto-class")) + (hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-ledger-test" or (buildDepError "cardano-ledger-test")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) + (hsPkgs."network-mux" or (buildDepError "network-mux")) + (hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."io-sim" or (buildDepError "io-sim")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."cryptonite" or (buildDepError "cryptonite")) + (hsPkgs."deepseq" or (buildDepError "deepseq")) + (hsPkgs."fgl" or (buildDepError "fgl")) + (hsPkgs."fingertree" or (buildDepError "fingertree")) + (hsPkgs."generics-sop" or (buildDepError "generics-sop")) + (hsPkgs."graphviz" or (buildDepError "graphviz")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."quickcheck-state-machine" or (buildDepError "quickcheck-state-machine")) + (hsPkgs."random" or (buildDepError "random")) + (hsPkgs."reflection" or (buildDepError "reflection")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-hunit" or (buildDepError "tasty-hunit")) + (hsPkgs."tasty-quickcheck" or (buildDepError "tasty-quickcheck")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."tree-diff" or (buildDepError "tree-diff")) ]; + buildable = true; }; "test-storage" = { depends = [ - (hsPkgs.base) - (hsPkgs.cardano-crypto-class) - (hsPkgs.cardano-ledger) - (hsPkgs.cardano-ledger-test) - (hsPkgs.cardano-prelude) - (hsPkgs.ouroboros-network) - (hsPkgs.ouroboros-network-testing) - (hsPkgs.ouroboros-consensus) - (hsPkgs.io-sim-classes) - (hsPkgs.io-sim) - (hsPkgs.base16-bytestring) - (hsPkgs.bifunctors) - (hsPkgs.binary) - (hsPkgs.bytestring) - (hsPkgs.cereal) - (hsPkgs.containers) - (hsPkgs.contra-tracer) - (hsPkgs.deepseq) - (hsPkgs.directory) - (hsPkgs.fingertree) - (hsPkgs.generics-sop) - (hsPkgs.mtl) - (hsPkgs.pretty-show) - (hsPkgs.QuickCheck) - (hsPkgs.quickcheck-state-machine) - (hsPkgs.random) - (hsPkgs.reflection) - (hsPkgs.serialise) - (hsPkgs.tasty) - (hsPkgs.tasty-hunit) - (hsPkgs.tasty-quickcheck) - (hsPkgs.temporary) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.transformers) - (hsPkgs.tree-diff) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."cardano-crypto-class" or (buildDepError "cardano-crypto-class")) + (hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger")) + (hsPkgs."cardano-ledger-test" or (buildDepError "cardano-ledger-test")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network")) + (hsPkgs."ouroboros-network-testing" or (buildDepError "ouroboros-network-testing")) + (hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."io-sim" or (buildDepError "io-sim")) + (hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring")) + (hsPkgs."bifunctors" or (buildDepError "bifunctors")) + (hsPkgs."binary" or (buildDepError "binary")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cereal" or (buildDepError "cereal")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."deepseq" or (buildDepError "deepseq")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."fingertree" or (buildDepError "fingertree")) + (hsPkgs."generics-sop" or (buildDepError "generics-sop")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."pretty-show" or (buildDepError "pretty-show")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."quickcheck-state-machine" or (buildDepError "quickcheck-state-machine")) + (hsPkgs."random" or (buildDepError "random")) + (hsPkgs."reflection" or (buildDepError "reflection")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-hunit" or (buildDepError "tasty-hunit")) + (hsPkgs."tasty-quickcheck" or (buildDepError "tasty-quickcheck")) + (hsPkgs."temporary" or (buildDepError "temporary")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."transformers" or (buildDepError "transformers")) + (hsPkgs."tree-diff" or (buildDepError "tree-diff")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/ouroboros-network.nix b/nix/.stack.nix/ouroboros-network.nix index 6962f19..4435bf9 100644 --- a/nix/.stack.nix/ouroboros-network.nix +++ b/nix/.stack.nix/ouroboros-network.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = { ipv6 = false; cddl = false; }; package = { @@ -13,119 +52,124 @@ synopsis = "A networking layer for the Ouroboros blockchain protocol"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.network-mux) - (hsPkgs.typed-protocols) - (hsPkgs.typed-protocols-cbor) - (hsPkgs.io-sim-classes) - (hsPkgs.contra-tracer) - (hsPkgs.cardano-prelude) - (hsPkgs.async) - (hsPkgs.binary) - (hsPkgs.bytestring) - (hsPkgs.cardano-binary) - (hsPkgs.cborg) - (hsPkgs.containers) - (hsPkgs.dns) - (hsPkgs.fingertree) - (hsPkgs.iproute) - (hsPkgs.network) - (hsPkgs.serialise) - (hsPkgs.stm) - (hsPkgs.time) - (hsPkgs.hashable) - (hsPkgs.text) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."network-mux" or (buildDepError "network-mux")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."binary" or (buildDepError "binary")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."dns" or (buildDepError "dns")) + (hsPkgs."fingertree" or (buildDepError "fingertree")) + (hsPkgs."iproute" or (buildDepError "iproute")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."hashable" or (buildDepError "hashable")) + (hsPkgs."text" or (buildDepError "text")) ]; + buildable = true; }; exes = { "demo-chain-sync" = { depends = [ - (hsPkgs.base) - (hsPkgs.async) - (hsPkgs.bytestring) - (hsPkgs.containers) - (hsPkgs.contra-tracer) - (hsPkgs.directory) - (hsPkgs.network-mux) - (hsPkgs.network) - (hsPkgs.ouroboros-network) - (hsPkgs.QuickCheck) - (hsPkgs.random) - (hsPkgs.serialise) - (hsPkgs.splitmix) - (hsPkgs.stm) - (hsPkgs.typed-protocols-cbor) - (hsPkgs.typed-protocols) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."network-mux" or (buildDepError "network-mux")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."random" or (buildDepError "random")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."splitmix" or (buildDepError "splitmix")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) ]; + buildable = true; }; }; tests = { "test-network" = { depends = [ - (hsPkgs.base) - (hsPkgs.array) - (hsPkgs.async) - (hsPkgs.binary) - (hsPkgs.bytestring) - (hsPkgs.cardano-binary) - (hsPkgs.cardano-prelude) - (hsPkgs.cborg) - (hsPkgs.containers) - (hsPkgs.contra-tracer) - (hsPkgs.directory) - (hsPkgs.dns) - (hsPkgs.fingertree) - (hsPkgs.hashable) - (hsPkgs.io-sim) - (hsPkgs.io-sim-classes) - (hsPkgs.iproute) - (hsPkgs.mtl) - (hsPkgs.network-mux) - (hsPkgs.network) - (hsPkgs.ouroboros-network-testing) - (hsPkgs.pipes) - (hsPkgs.process) - (hsPkgs.QuickCheck) - (hsPkgs.serialise) - (hsPkgs.splitmix) - (hsPkgs.stm) - (hsPkgs.tasty-hunit) - (hsPkgs.tasty-quickcheck) - (hsPkgs.tasty) - (hsPkgs.text) - (hsPkgs.time) - (hsPkgs.typed-protocols-cbor) - (hsPkgs.typed-protocols) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."array" or (buildDepError "array")) + (hsPkgs."async" or (buildDepError "async")) + (hsPkgs."binary" or (buildDepError "binary")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."directory" or (buildDepError "directory")) + (hsPkgs."dns" or (buildDepError "dns")) + (hsPkgs."fingertree" or (buildDepError "fingertree")) + (hsPkgs."hashable" or (buildDepError "hashable")) + (hsPkgs."io-sim" or (buildDepError "io-sim")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."iproute" or (buildDepError "iproute")) + (hsPkgs."mtl" or (buildDepError "mtl")) + (hsPkgs."network-mux" or (buildDepError "network-mux")) + (hsPkgs."network" or (buildDepError "network")) + (hsPkgs."ouroboros-network-testing" or (buildDepError "ouroboros-network-testing")) + (hsPkgs."pipes" or (buildDepError "pipes")) + (hsPkgs."process" or (buildDepError "process")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."splitmix" or (buildDepError "splitmix")) + (hsPkgs."stm" or (buildDepError "stm")) + (hsPkgs."tasty-hunit" or (buildDepError "tasty-hunit")) + (hsPkgs."tasty-quickcheck" or (buildDepError "tasty-quickcheck")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."time" or (buildDepError "time")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) ]; + buildable = true; }; "cddl" = { depends = [ - (hsPkgs.base) - (hsPkgs.bytestring) - (hsPkgs.cardano-binary) - (hsPkgs.cardano-prelude) - (hsPkgs.cborg) - (hsPkgs.containers) - (hsPkgs.contra-tracer) - (hsPkgs.fingertree) - (hsPkgs.hashable) - (hsPkgs.io-sim) - (hsPkgs.io-sim-classes) - (hsPkgs.network-mux) - (hsPkgs.pipes) - (hsPkgs.process-extras) - (hsPkgs.QuickCheck) - (hsPkgs.serialise) - (hsPkgs.tasty) - (hsPkgs.tasty-quickcheck) - (hsPkgs.text) - (hsPkgs.typed-protocols-cbor) - (hsPkgs.typed-protocols) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cardano-binary" or (buildDepError "cardano-binary")) + (hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."containers" or (buildDepError "containers")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."fingertree" or (buildDepError "fingertree")) + (hsPkgs."hashable" or (buildDepError "hashable")) + (hsPkgs."io-sim" or (buildDepError "io-sim")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."network-mux" or (buildDepError "network-mux")) + (hsPkgs."pipes" or (buildDepError "pipes")) + (hsPkgs."process-extras" or (buildDepError "process-extras")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-quickcheck" or (buildDepError "tasty-quickcheck")) + (hsPkgs."text" or (buildDepError "text")) + (hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) ]; + buildable = if !flags.cddl then false else true; }; }; }; diff --git a/nix/.stack.nix/typed-protocols-cbor.nix b/nix/.stack.nix/typed-protocols-cbor.nix index a81af51..91d6eff 100644 --- a/nix/.stack.nix/typed-protocols-cbor.nix +++ b/nix/.stack.nix/typed-protocols-cbor.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,31 +52,34 @@ synopsis = ""; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.bytestring) - (hsPkgs.cborg) - (hsPkgs.serialise) - (hsPkgs.io-sim-classes) - (hsPkgs.typed-protocols) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) ]; + buildable = true; }; tests = { "test-typed-protocols-cbor" = { depends = [ - (hsPkgs.base) - (hsPkgs.bytestring) - (hsPkgs.cborg) - (hsPkgs.serialise) - (hsPkgs.QuickCheck) - (hsPkgs.tasty) - (hsPkgs.tasty-quickcheck) - (hsPkgs.io-sim-classes) - (hsPkgs.typed-protocols) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."cborg" or (buildDepError "cborg")) + (hsPkgs."serialise" or (buildDepError "serialise")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-quickcheck" or (buildDepError "tasty-quickcheck")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."typed-protocols" or (buildDepError "typed-protocols")) ]; + buildable = true; }; }; }; diff --git a/nix/.stack.nix/typed-protocols.nix b/nix/.stack.nix/typed-protocols.nix index 1e61d36..82c7de9 100644 --- a/nix/.stack.nix/typed-protocols.nix +++ b/nix/.stack.nix/typed-protocols.nix @@ -1,4 +1,43 @@ -{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: +let + buildDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (build dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + sysDepError = pkg: + builtins.throw '' + The Nixpkgs package set does not contain the package: ${pkg} (system dependency). + + You may need to augment the system package mapping in haskell.nix so that it can be found. + ''; + pkgConfDepError = pkg: + builtins.throw '' + The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency). + + You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found. + ''; + exeDepError = pkg: + builtins.throw '' + The local executable components do not include the component: ${pkg} (executable dependency). + ''; + legacyExeDepError = pkg: + builtins.throw '' + The Haskell package set does not contain the package: ${pkg} (executable dependency). + + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; + buildToolDepError = pkg: + builtins.throw '' + Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency). + + If this is a system dependency: + You may need to augment the system package mapping in haskell.nix so that it can be found. + + If this is a Haskell dependency: + If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix. + ''; +in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }: { flags = {}; package = { @@ -13,30 +52,33 @@ synopsis = "A framework for strongly typed protocols"; description = ""; buildType = "Simple"; + isLocal = true; }; components = { "library" = { depends = [ - (hsPkgs.base) - (hsPkgs.io-sim-classes) - (hsPkgs.bytestring) - (hsPkgs.contra-tracer) - (hsPkgs.time) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."time" or (buildDepError "time")) ]; + buildable = true; }; tests = { "test-protocols" = { depends = [ - (hsPkgs.base) - (hsPkgs.bytestring) - (hsPkgs.contra-tracer) - (hsPkgs.io-sim-classes) - (hsPkgs.io-sim) - (hsPkgs.QuickCheck) - (hsPkgs.tasty) - (hsPkgs.tasty-quickcheck) - (hsPkgs.time) + (hsPkgs."base" or (buildDepError "base")) + (hsPkgs."bytestring" or (buildDepError "bytestring")) + (hsPkgs."contra-tracer" or (buildDepError "contra-tracer")) + (hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes")) + (hsPkgs."io-sim" or (buildDepError "io-sim")) + (hsPkgs."QuickCheck" or (buildDepError "QuickCheck")) + (hsPkgs."tasty" or (buildDepError "tasty")) + (hsPkgs."tasty-quickcheck" or (buildDepError "tasty-quickcheck")) + (hsPkgs."time" or (buildDepError "time")) ]; + buildable = true; }; }; }; diff --git a/nix/iohk-nix-src.json b/nix/iohk-nix-src.json index 2f1f7d7..b3cdc91 100644 --- a/nix/iohk-nix-src.json +++ b/nix/iohk-nix-src.json @@ -1,7 +1,7 @@ { "url": "https://github.com/input-output-hk/iohk-nix", - "rev": "8c91eb3e1593202b92ded827d88ef2e4768a2dc5", - "date": "2019-09-09T08:23:48+00:00", - "sha256": "1lw8g1h5ip6xajrsakxllnlk4ic7p9yn1zsgn341sbqhfy5yk7vv", + "rev": "7f84841bb75fb9902fc31cd86c35ba0aeb953b09", + "date": "2019-10-18T20:02:02+00:00", + "sha256": "1a7hjcp2cc5b1zm498czfrbfw3s2bhq4sqc0ixbjn5zb4jsdl36i", "fetchSubmodules": false }