Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ jobs:

- uses: actions/checkout@v6

- name: Configure Git to support long file paths on Windows
if: ${{ matrix.sys.os == 'windows-latest' }}
run: git config --system core.longpaths true

- name: Cache and install Cabal dependencies
uses: input-output-hk/cardano-dev/actions/cabal-cache@cabal-cache-0.0.1.0
with:
Expand Down
28 changes: 22 additions & 6 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ repository cardano-haskell-packages
-- See CONTRIBUTING for information about these, including some Nix commands
-- you need to run if you change them
index-state:
, hackage.haskell.org 2026-06-10T14:43:25Z
, cardano-haskell-packages 2026-06-29T12:05:19Z
, hackage.haskell.org 2026-07-15T21:58:35Z
, cardano-haskell-packages 2026-06-30T00:00:00Z

packages:
cardano-cli
Expand Down Expand Up @@ -100,8 +100,8 @@ if impl(ghc >= 9.14)
source-repository-package
type: git
location: https://github.com/IntersectMBO/cardano-api
tag: cc4dfe71536d59cb745e8ce1c09ee83dfcde6218
--sha256: sha256-n6WJd5w3NSMICUBwefgix2/f+z5La4dkn59dDO4zlHo=
tag: 947645ea9c912da13feadc16bef44a7550c3c55b
--sha256: sha256-+fIsJuJV4YBSPdVe3wpIxq9lf6nAI5yB7qdzH0iKmrc=
subdir:
cardano-api
cardano-api-gen
Expand Down Expand Up @@ -133,8 +133,8 @@ source-repository-package
source-repository-package
type: git
location: https://github.com/f-f/kes-agent.git
tag: 32c1ed675d22a30735d9f22f7afa436a3ef3e64a
--sha256: sha256-o7hFX1JnraS6Xq0WoXQwd9Z8GsPPv0Ls2DWvZ08o0ZU=
tag: c0d24ab8bf8f9f736aed3c7028534355fb89ecaa
--sha256: sha256-T3rDZ38iMuE7SZpttHX6yTJYqWqdyw6Qsh5irs1d2T8=
subdir:
kes-agent
kes-agent-crypto
Expand All @@ -146,6 +146,12 @@ source-repository-package
tag: e790deca75b4f72e57a1e36c2775bf4111220450
--sha256: sha256-W64c1D44drtWNnUI6Nq5YP6X2LhRNEiJu1MM+d+Rp2s=

-- ouroboros-consensus uses deprecated cardano-ledger API (Validated, applyTx).
-- Suppress deprecation warnings to match the nix build behavior (which only
-- applies -Werror to cardano-api, not to external packages).
package ouroboros-consensus
ghc-options: -Wno-deprecations

-- Points to ouroboros-network/leios-prototype
source-repository-package
type: git
Expand All @@ -156,3 +162,13 @@ source-repository-package
ouroboros-network
cardano-diffusion
network-mux

source-repository-package
type: git
location: https://github.com/IntersectMBO/plutus.git
tag: b1db04cc425fab303ac3b79d7140dc2a17f29e6d
--sha256: sha256-XtYzjNVx4+IGWpgm+p/YTf56DrJtK0I98umZCTE3U80=
subdir:
plutus-core
plutus-ledger-api
plutus-tx
32 changes: 26 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 18 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
url = "github:intersectmbo/cardano-haskell-packages?ref=repo";
flake = false;
};

# Fetched with submodules=1 so that cardano-blueprint is available during
# cabal project evaluation (haskell.nix's fetchgit does not fetch submodules).
ouroboros-consensus = {
url = "git+https://github.com/input-output-hk/ouroboros-consensus?rev=3511ac5ad2ded55553d821e7305a2c10e1cfbeca&submodules=1";
flake = false;
};
};

outputs = inputs: let
Expand Down Expand Up @@ -165,6 +172,9 @@
#
inputMap = {
"https://chap.intersectmbo.org/" = inputs.CHaP;
# Provide ouroboros-consensus with submodules so cardano-blueprint
# files are available during cabal project evaluation.
"https://github.com/input-output-hk/ouroboros-consensus" = inputs.ouroboros-consensus;
};
shell = {
packages = p: [p.cardano-cli p.cardano-ledger-core p.cardano-api p.ouroboros-consensus];
Expand All @@ -182,7 +192,7 @@
hlint = {version = "3.10";};
};
# and from nixpkgs or other inputs
nativeBuildInputs = with nixpkgs; [gh jq yq-go unstable.actionlint shellcheck] ++ (lib.optional isDarwin macOS-security);
nativeBuildInputs = with nixpkgs; [gh jq yq-go unstable.actionlint shellcheck pv] ++ (lib.optional isDarwin macOS-security);
# disable Hoogle until someone request it
withHoogle = false;
# Skip cross compilers for the shell
Expand All @@ -207,13 +217,18 @@
...
}: let
cliExe = "${config.hsPkgs.cardano-cli.components.exes.cardano-cli}/bin/cardano-cli${pkgs.stdenv.hostPlatform.extensions.executable}";
needsQemu = pkgs.stdenv.hostPlatform.isLinux
needsQemu =
pkgs.stdenv.hostPlatform.isLinux
&& pkgs.stdenv.hostPlatform != pkgs.stdenv.buildPlatform
&& pkgs.stdenv.hostPlatform.parsed.cpu.name != pkgs.stdenv.buildPlatform.parsed.cpu.name;
qemuWrapped = pkgs.buildPackages.writeShellScript "cardano-cli-qemu" ''
exec ${pkgs.buildPackages.qemu}/bin/qemu-${pkgs.stdenv.hostPlatform.qemuArch} ${cliExe} "$@"
'';
exportCliPath = "export CARDANO_CLI=${if needsQemu then qemuWrapped else cliExe}";
exportCliPath = "export CARDANO_CLI=${
if needsQemu
then qemuWrapped
else cliExe
}";
mainnetConfigFiles = [
"configuration/cardano/mainnet-config.yaml"
"configuration/cardano/mainnet-config.json"
Expand Down
Loading