File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ repository cardano-haskell-packages
1414-- you need to run if you change them
1515index-state :
1616 , hackage.haskell.org 2026-02-06T20:27 :32Z
17- , cardano-haskell-packages 2026-03-03T10:50 :34Z
17+ , cardano-haskell-packages 2026-03-11T22:13 :22Z
1818
1919constraints :
2020 -- haskell.nix patch does not work for 1.6.8
@@ -99,10 +99,3 @@ source-repository-package
9999 proto-lens-tests
100100 proto-lens
101101
102- source-repository-package
103- type : git
104- location : https://github.com/IntersectMBO/cardano-api
105- tag : 23b2f6ca68c0e5efbda31a6b121368dac0945d82
106- --sha256 : sha256-H2aNFtGAXLXqo1TiMYY/w7Paxs8VZrwq4BRjmL77hCk=
107- subdir :
108- cardano-rpc
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ library
156156 , cardano-prelude
157157 , cardano-protocol-tpraos >= 1.4
158158 , cardano-slotting >= 0.2
159- , cardano-rpc ^>= 10.0
159+ , cardano-rpc ^>= 10.1
160160 , cborg ^>= 0.2.4
161161 , containers
162162 , contra-tracer
Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ handleSimpleNode blockType runP tracers nc onKernel = do
557557
558558 ProtocolInfo {pInfoConfig} = fst $ Api. protocolInfo @ IO runP
559559 networkMagic :: Api. NetworkMagic = getNetworkMagic $ Consensus. configBlock pInfoConfig
560- withAsync (runRpcServer (rpcTracer tracers) (pure ( ncRpcConfig nc, networkMagic) )) $ \ _ ->
560+ withAsync (runRpcServer (rpcTracer tracers) (ncRpcConfig nc, networkMagic)) $ \ _ ->
561561 Node. run
562562 nodeArgs {
563563 rnNodeKernelHook = \ registry nodeKernel -> do
Original file line number Diff line number Diff line change 8080 # on darwin which calls this binary to find certificates
8181 pkgs . writeScriptBin "security" ''exec /usr/bin/security "$@"'' ;
8282
83+ windowsCompilerNixName = "ghc9122" ;
84+
8385 supportedSystems = import ./nix/supported-systems.nix ;
8486 defaultSystem = head supportedSystems ;
8587 customConfig =
8688 recursiveUpdate
8789 ( import ./nix/custom-config.nix customConfig )
8890 input . customConfig ;
8991
90- abseilOverlay = final : prev :
91- prev . lib . optionalAttrs prev . stdenv . hostPlatform . isWindows {
92- abseil-cpp = prev . abseil-cpp . overrideAttrs ( finalAttrs : previousAttrs : {
93- buildInputs = previousAttrs . buildInputs ++ [ prev . pkgs . windows . pthreads ] ;
94- } ) ;
95- } ;
96-
9792 overlays = [
9893 # Crypto needs to come before haskell.nix.
9994 # FIXME: _THIS_IS_BAD_
114109 // import ./nix/svclib.nix { inherit ( final ) pkgs ; } ;
115110 } )
116111 ( import ./nix/pkgs.nix )
117- abseilOverlay
118112 self . overlay
119113 ] ;
120114
365359 # Once building, windowsProject candidate for win-arm64 is project.projectCross.ucrtAarch64.
366360 // optionalAttrs ( elem system [ "x86_64-linux" ] ) {
367361 windows = let
368- windowsProject = project . projectCross . mingwW64 ;
362+ windowsProject = ( project . appendModule { compiler-nix-name = windowsCompilerNixName ; } ) . projectCross . mingwW64 ;
369363 projectExes = collectExes windowsProject ;
370364 in
371365 projectExes
491485 cardanoNodeProject =
492486 ( import ./nix/haskell.nix {
493487 inherit ( final ) haskell-nix ;
494- inherit CHaP incl ;
488+ inherit CHaP incl windowsCompilerNixName ;
495489 macOS-security = macOS-security ( final . pkgs ) ;
496490 } )
497491 . appendModule [
Original file line number Diff line number Diff line change 55, incl
66, CHaP
77, macOS-security
8+ , windowsCompilerNixName
89} :
910let
1011
2122 {
2223 src = ../. ;
2324 name = "cardano-node" ;
24- compiler-nix-name = lib . mkDefault ( if pkgs . stdenv . hostPlatform . isWindows then "ghc9122" else "ghc967" ) ;
25+ compiler-nix-name = lib . mkDefault ( if pkgs . stdenv . hostPlatform . isWindows then windowsCompilerNixName else "ghc967" ) ;
2526 # Extra-compilers
2627 # flake.variants = lib.genAttrs ["ghc$VERSION"] (x: {compiler-nix-name = x;});
2728 cabalProjectLocal = ''
311312 '' ;
312313 } )
313314 ( { pkgs , ...} : {
314- packages . proto-lens-protobuf-types . components . library . build-tools = [ pkgs . protobuf ] ;
315- packages . cardano-rpc . components . library . build-tools = [ pkgs . protobuf ] ;
315+ packages . proto-lens-protobuf-types . components . library . build-tools = [ pkgs . buildPackages . protobuf ] ;
316+ packages . cardano-rpc . components . library . build-tools = [ pkgs . buildPackages . protobuf ] ;
316317 } )
317318 ( { lib , pkgs , ... } : lib . mkIf ( ! pkgs . stdenv . hostPlatform . isDarwin ) {
318319 # Needed for profiled builds to fix an issue loading recursion-schemes part of makeBaseFunctor
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ final: prev:
44let
55 inherit ( builtins ) foldl' fromJSON listToAttrs map readFile ;
66 inherit ( final ) pkgs ;
7- inherit ( prev . pkgs ) lib ;
7+ inherit ( prev ) lib ;
88 inherit ( prev ) customConfig ;
99 # Parametrized helper entrypoint for the workbench development environment.
1010 workbench = import ./workbench
@@ -225,3 +225,13 @@ in with final;
225225 ] ;
226226 } ) ;
227227}
228+ // lib . optionalAttrs prev . stdenv . hostPlatform . isWindows {
229+ abseil-cpp = prev . abseil-cpp . overrideAttrs ( finalAttrs : previousAttrs : {
230+ buildInputs = previousAttrs . buildInputs ++ [ prev . windows . pthreads ] ;
231+ } ) ;
232+ }
233+ // lib . optionalAttrs prev . stdenv . hostPlatform . isMusl {
234+ snappy = prev . snappy . overrideAttrs ( old : {
235+ cmakeFlags = map ( f : if f == "-DBUILD_SHARED_LIBS=ON" then "-DBUILD_SHARED_LIBS=OFF" else f ) ( old . cmakeFlags or [ ] ) ;
236+ } ) ;
237+ }
You can’t perform that action at this time.
0 commit comments