Skip to content

Commit f7a072d

Browse files
authored
Merge pull request #6561 from IntersectMBO/mgalazyn/chore/remove-proto-lens-srp-bump-hackage
Bump hackage. Remove proto-lens srp
2 parents d58363b + 8c8a136 commit f7a072d

6 files changed

Lines changed: 39 additions & 91 deletions

File tree

bench/plutus-scripts-bench/plutus-scripts-bench.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ common common-definitions
5353
-fobject-code -fno-full-laziness
5454

5555
if flag(defer-plugin-errors)
56-
ghc-options: -fplugin-opt PlutusTx.Plugin:defer-errors
56+
ghc-options: -fplugin-opt=PlutusTx.Plugin:defer-errors
5757

5858
library
5959
import: common-definitions

cabal.project

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository cardano-haskell-packages
1313
-- See CONTRIBUTING for information about these, including some Nix commands
1414
-- you need to run if you change them
1515
index-state:
16-
, hackage.haskell.org 2026-03-26T20:21:33Z
16+
, hackage.haskell.org 2026-04-17T09:20:55Z
1717
, cardano-haskell-packages 2026-05-02T16:21:41Z
1818

1919
active-repositories:
@@ -24,7 +24,9 @@ constraints:
2424
-- haskell.nix patch does not work for 1.6.8
2525
, any.crypton-x509-system < 1.6.8
2626
-- haskell.nix tries to use 0.7.1.5 for some reason
27-
, any.proto-lens >= 0.7.1.6
27+
, any.proto-lens >= 0.7.1.7
28+
-- https://github.com/channable/alfred-margaret/pull/76
29+
, any.alfred-margaret < 2.1.1.0 || > 2.1.1.0
2830

2931
-- acts has a finitary flag; disabling it avoids pulling in finitary entirely,
3032
-- which sidesteps the GHC type-checker plugin incompatibility with
@@ -89,25 +91,3 @@ allow-newer:
8991
-- Do NOT add more source-repository-package stanzas here unless they are strictly
9092
-- temporary! Please read the section in CONTRIBUTING about updating dependencies.
9193

92-
if impl(ghc >= 9.12)
93-
-- GHC 9.12 support - master branch
94-
source-repository-package
95-
type: git
96-
location: https://github.com/google/proto-lens
97-
tag: 13ce67409ad87e8c29eea58b31aa37f44e82457c
98-
--sha256: sha256-8XPGLheOo5ZStL7YD5x29GechWFjubw+in5GsUrKWPc=
99-
subdir:
100-
discrimination-ieee754
101-
proto-lens-arbitrary
102-
proto-lens-benchmarks
103-
proto-lens-discrimination
104-
proto-lens-optparse
105-
proto-lens-protobuf-types
106-
proto-lens-protoc
107-
proto-lens-runtime
108-
proto-lens-setup
109-
proto-lens-tests-dep
110-
proto-lens-tests
111-
proto-lens
112-
113-

flake.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@
377377
# Once building, windowsProject candidate for win-arm64 is project.projectCross.ucrtAarch64.
378378
// optionalAttrs (elem system ["x86_64-linux"]) {
379379
windows = let
380-
windowsProject = (project.appendModule {compiler-nix-name = windowsCompilerNixName;}).projectCross.mingwW64;
380+
windowsProject = (project.appendModule {compiler-nix-name = windowsCompilerNixName;}).projectCross.ucrt64;
381381
projectExes = collectExes windowsProject;
382382
in
383383
projectExes

nix/haskell.nix

Lines changed: 14 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,7 @@ let
1919
, buildProject
2020
, ...
2121
}:
22-
let
23-
# Fetch proto-lens with submodules and fix symlinks for plan and build phases
24-
protoLensSrc = pkgs.fetchgit {
25-
url = "https://github.com/google/proto-lens";
26-
rev = "20de5227947b0c37dd6852dcc6f2db1cd5889cee";
27-
sha256 = "sha256-VUYU2swjU7L8Zdu6Zfz6jo2ulW5uPhAamt2GjH5hZRY=";
28-
fetchSubmodules = true;
29-
};
30-
fixProtoLensSrc = pkgs.runCommand "proto-lens-fixed" {} ''
31-
mkdir -p $out
32-
cp -a ${protoLensSrc}/. $out/
33-
chmod -R +w $out
34-
# Fix proto-lens-imports symlink in proto-lens
35-
rm -rf $out/proto-lens/proto-lens-imports/google
36-
cp -r ${protoLensSrc}/google/protobuf/src/google $out/proto-lens/proto-lens-imports/
37-
# Fix proto-src symlink in proto-lens-protobuf-types
38-
rm -rf $out/proto-lens-protobuf-types/proto-src
39-
cp -r ${protoLensSrc}/google/protobuf/src $out/proto-lens-protobuf-types/proto-src
40-
chmod -R -w $out
41-
'';
42-
in {
22+
{
4323
src = ../.;
4424
name = "cardano-node";
4525
compiler-nix-name = lib.mkDefault (if pkgs.stdenv.hostPlatform.isWindows then windowsCompilerNixName else "ghc967");
@@ -67,7 +47,6 @@ let
6747
'';
6848
inputMap = {
6949
"https://chap.intersectmbo.org/" = CHaP;
70-
"https://github.com/google/proto-lens/20de5227947b0c37dd6852dcc6f2db1cd5889cee" = fixProtoLensSrc;
7150
};
7251
shell = {
7352
name = lib.mkDefault "cabal-dev-shell";
@@ -90,6 +69,13 @@ let
9069
];
9170

9271
withHoogle = true;
72+
73+
# https://github.com/channable/alfred-margaret/pull/76
74+
tools.hoogle = {
75+
cabalProjectLocal = ''
76+
constraints: any.alfred-margaret <2.1.1.0 || >2.1.1.0
77+
'';
78+
};
9379
};
9480

9581

@@ -178,6 +164,12 @@ let
178164
# export ISERV_ARGS="-v +RTS -Dl"
179165
# export PROXY_ARGS=-v
180166
#'';
167+
168+
# Tests broken under Wine: System.IO.Temp file operations fail
169+
packages.cardano-profile.components.tests.cardano-profile-test.buildable = lib.mkForce false;
170+
packages.cardano-topology.components.tests.cardano-topology-test.buildable = lib.mkForce false;
171+
packages.cardano-recon-framework.components.tests.cardano-recon-integration-test.buildable = lib.mkForce false;
172+
packages.trace-schema-gen.components.tests.trace-schema-gen-test.buildable = lib.mkForce false;
181173
})
182174
({ lib, pkgs, config, ... }: lib.mkIf (builtins.compareVersions config.compiler.version "9.4" >= 0) {
183175
# lib:ghc is a bit annoying in that it comes with it's own build-type:Custom, and then tries
@@ -390,30 +382,6 @@ let
390382
# TODO add flags to packages (like cs-ledger) so we can turn off tests that will
391383
# not build for windows on a per package bases (rather than using --disable-tests).
392384
# configureArgs = lib.optionalString stdenv.hostPlatform.isWindows "--disable-tests";
393-
394-
# TODO remove this module when removing proto-lens SRP
395-
# Override proto-lens source to use fixed symlinks (inputMap provides the fixed
396-
# source for plan computation; this module provides it for the build phase)
397-
({lib, config, ...}: let
398-
protoLensPackages = [
399-
"proto-lens"
400-
"proto-lens-arbitrary"
401-
"proto-lens-discrimination"
402-
"proto-lens-optparse"
403-
"proto-lens-protobuf-types"
404-
"proto-lens-protoc"
405-
"proto-lens-runtime"
406-
"proto-lens-setup"
407-
"proto-lens-tests-dep"
408-
"proto-lens-tests"
409-
"discrimination-ieee754"
410-
"proto-lens-benchmarks"
411-
];
412-
in {
413-
packages = lib.genAttrs
414-
(builtins.filter (p: config.packages ? ${p}) protoLensPackages)
415-
(p: { src = lib.mkForce (fixProtoLensSrc + "/${p}"); });
416-
})
417385
];
418386
});
419387
in

nix/pkgs.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ in with final;
207207
);
208208

209209
# Disable failing python uvloop tests
210-
python310 = prev.python310.override {
210+
python311 = prev.python311.override {
211211
packageOverrides = pythonFinal: pythonPrev: {
212212
uvloop = pythonPrev.uvloop.overrideAttrs (attrs: {
213213
disabledTestPaths = [ "tests/test_tcp.py" "tests/test_sourcecode.py" "tests/test_dns.py" ];

0 commit comments

Comments
 (0)