-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nix: refatored how shell & tools are provided (#4969)
* dependabot: remove misnamed script We still have `.github/dependabot.yml`. * nix: refactored how shell & tools are provided * ouroboros-network-framework: removed unused extensions * nix: stylish-haskell formatting * nix: format nix files with nixpkgs-fmt * formatted nix files with nixpkg-fmt * nix: format cabal files with cabal-gild * formated cabal files with cabal-gild * GHA: removed check-git-dependencies We no longer use `srp` for dependency management, thus the script is no longer needed. * nix: run `cabal check` * nix: removed formatter field * tx-submission: fixed a nothunk violation in a test I made the `getTxSize` field of `Tx` strict. Ref: https://ci.iog.io/build/5515353/nixlog/1 * nix: ouroboros-network * Added explicit cabal.project * Removed `-Werror` flags in nix, they are set in `cabal.project.local` files. * Used `doCheckCross` instead of setting `doCheck` flag per package. * nix: added profiling shell ``` nix develop .\#profiling ``` It will enter a nix shell with profiling environment for `ghc-9.8`. * nix: build documentation, formats & shell only on `x86_64-linux` * nix: removed nsh.sh script * nix: removed shell.nix file The only supported way to start one of the provides shells is by using `nix develop`. * nix: nix build .\#format.all Added a convenient way to run all formatters.
- Loading branch information
Showing
30 changed files
with
1,876 additions
and
1,830 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
cabal-version: 3.0 | ||
name: cardano-client | ||
version: 0.3.1.5 | ||
synopsis: An API for ouroboros-network | ||
description: An API for ouroboros-network. | ||
license: Apache-2.0 | ||
license-files: | ||
LICENSE | ||
NOTICE | ||
|
||
name: cardano-client | ||
version: 0.3.1.5 | ||
synopsis: An API for ouroboros-network | ||
description: An API for ouroboros-network. | ||
license: Apache-2.0 | ||
license-files: LICENSE | ||
NOTICE | ||
copyright: 2019-2023 Input Output Global Inc (IOG), 2023-2024 Intersect | ||
author: IOHK Engineering Team | ||
maintainer: [email protected] | ||
category: Network | ||
build-type: Simple | ||
extra-doc-files: CHANGELOG.md | ||
copyright: 2019-2023 Input Output Global Inc (IOG), 2023-2024 Intersect | ||
author: IOHK Engineering Team | ||
maintainer: [email protected] | ||
category: Network | ||
build-type: Simple | ||
extra-doc-files: CHANGELOG.md | ||
|
||
library | ||
hs-source-dirs: src | ||
exposed-modules: Cardano.Client.Subscription | ||
default-language: Haskell2010 | ||
default-extensions: ImportQualifiedPost | ||
build-depends: base >=4.14 && <4.21, | ||
bytestring >=0.10 && <0.13, | ||
containers, | ||
ouroboros-network-api >= 0.5.2 && < 0.10, | ||
ouroboros-network >= 0.9 && < 0.18, | ||
ouroboros-network-framework >= 0.8 && < 0.14, | ||
network-mux ^>= 0.4.5, | ||
hs-source-dirs: src | ||
exposed-modules: Cardano.Client.Subscription | ||
default-language: Haskell2010 | ||
default-extensions: ImportQualifiedPost | ||
build-depends: | ||
base >=4.14 && <4.21, | ||
bytestring >=0.10 && <0.13, | ||
containers, | ||
network-mux ^>=0.4.5, | ||
ouroboros-network >=0.9 && <0.18, | ||
ouroboros-network-api >=0.5.2 && <0.10, | ||
ouroboros-network-framework >=0.8 && <0.14, | ||
|
||
ghc-options: -Wall | ||
-Wno-unticked-promoted-constructors | ||
-Wcompat | ||
-Wincomplete-uni-patterns | ||
-Wincomplete-record-updates | ||
-Wpartial-fields | ||
-Widentities | ||
-Wredundant-constraints | ||
-Wunused-packages | ||
ghc-options: | ||
-Wall | ||
-Wno-unticked-promoted-constructors | ||
-Wcompat | ||
-Wincomplete-uni-patterns | ||
-Wincomplete-record-updates | ||
-Wpartial-fields | ||
-Widentities | ||
-Wredundant-constraints | ||
-Wunused-packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,60 @@ | ||
cabal-version: 3.0 | ||
name: cardano-ping | ||
version: 0.4.0.2 | ||
synopsis: Utility for pinging cardano nodes | ||
description: Utility for pinging cardano nodes. | ||
license: Apache-2.0 | ||
license-files: LICENSE | ||
NOTICE | ||
copyright: 2019-2023 Input Output Global Inc (IOG), 2023-2024 Intersect | ||
author: Karl Knutsson | ||
maintainer: [email protected] [email protected] | ||
category: Network | ||
build-type: Simple | ||
extra-doc-files: README.md | ||
CHANGELOG.md | ||
cabal-version: 3.0 | ||
name: cardano-ping | ||
version: 0.4.0.2 | ||
synopsis: Utility for pinging cardano nodes | ||
description: Utility for pinging cardano nodes. | ||
license: Apache-2.0 | ||
license-files: | ||
LICENSE | ||
NOTICE | ||
|
||
copyright: 2019-2023 Input Output Global Inc (IOG), 2023-2024 Intersect | ||
author: Karl Knutsson | ||
maintainer: [email protected] [email protected] | ||
category: Network | ||
build-type: Simple | ||
extra-doc-files: | ||
CHANGELOG.md | ||
README.md | ||
|
||
flag asserts | ||
description: Enable assertions | ||
manual: False | ||
default: False | ||
description: Enable assertions | ||
manual: False | ||
default: False | ||
|
||
library | ||
hs-source-dirs: src | ||
exposed-modules: Cardano.Network.Ping | ||
build-depends: base >=4.14 && <4.21, | ||
aeson >=2.1.1.0 && <3, | ||
cborg >=0.2.8 && <0.3, | ||
bytestring >=0.10 && <0.13, | ||
contra-tracer >=0.1 && <0.3, | ||
iproute, | ||
time, | ||
|
||
si-timers ^>=1.5, | ||
strict-stm, | ||
|
||
network-mux ^>=0.4.5, | ||
tdigest ^>=0.3, | ||
text >=1.2.4 && <2.2, | ||
transformers >=0.5 && <0.7, | ||
|
||
-- The Windows version of network-3.1.2 is missing | ||
-- functions, see | ||
-- https://github.com/haskell/network/issues/484 | ||
network >= 3.1.2.2 && < 3.2, | ||
hs-source-dirs: src | ||
exposed-modules: Cardano.Network.Ping | ||
build-depends: | ||
-- The Windows version of network-3.1.2 is missing | ||
-- functions, see | ||
-- https://github.com/haskell/network/issues/484 | ||
aeson >=2.1.1.0 && <3, | ||
base >=4.14 && <4.21, | ||
bytestring >=0.10 && <0.13, | ||
cborg >=0.2.8 && <0.3, | ||
contra-tracer >=0.1 && <0.3, | ||
iproute, | ||
network >=3.1.2.2 && <3.2, | ||
network-mux ^>=0.4.5, | ||
si-timers ^>=1.5, | ||
strict-stm, | ||
tdigest ^>=0.3, | ||
text >=1.2.4 && <2.2, | ||
time, | ||
transformers >=0.5 && <0.7, | ||
|
||
if flag(asserts) | ||
ghc-options: -fno-ignore-asserts | ||
|
||
default-language: Haskell2010 | ||
default-extensions: ImportQualifiedPost | ||
ghc-options: -Wall | ||
-Wcompat | ||
-Widentities | ||
-Wincomplete-record-updates | ||
-Wincomplete-uni-patterns | ||
-Wno-unticked-promoted-constructors | ||
-Wpartial-fields | ||
-Wredundant-constraints | ||
-Wunused-packages | ||
ghc-options: -fno-ignore-asserts | ||
default-language: Haskell2010 | ||
default-extensions: ImportQualifiedPost | ||
ghc-options: | ||
-Wall | ||
-Wcompat | ||
-Widentities | ||
-Wincomplete-record-updates | ||
-Wincomplete-uni-patterns | ||
-Wno-unticked-promoted-constructors | ||
-Wpartial-fields | ||
-Wredundant-constraints | ||
-Wunused-packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.