|
19 | 19 | , buildProject |
20 | 20 | , ... |
21 | 21 | }: |
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 | + { |
43 | 23 | src = ../.; |
44 | 24 | name = "cardano-node"; |
45 | 25 | compiler-nix-name = lib.mkDefault (if pkgs.stdenv.hostPlatform.isWindows then windowsCompilerNixName else "ghc967"); |
|
67 | 47 | ''; |
68 | 48 | inputMap = { |
69 | 49 | "https://chap.intersectmbo.org/" = CHaP; |
70 | | - "https://github.com/google/proto-lens/20de5227947b0c37dd6852dcc6f2db1cd5889cee" = fixProtoLensSrc; |
71 | 50 | }; |
72 | 51 | shell = { |
73 | 52 | name = lib.mkDefault "cabal-dev-shell"; |
|
90 | 69 | ]; |
91 | 70 |
|
92 | 71 | 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 | + }; |
93 | 79 | }; |
94 | 80 |
|
95 | 81 |
|
|
178 | 164 | # export ISERV_ARGS="-v +RTS -Dl" |
179 | 165 | # export PROXY_ARGS=-v |
180 | 166 | #''; |
| 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; |
181 | 173 | }) |
182 | 174 | ({ lib, pkgs, config, ... }: lib.mkIf (builtins.compareVersions config.compiler.version "9.4" >= 0) { |
183 | 175 | # lib:ghc is a bit annoying in that it comes with it's own build-type:Custom, and then tries |
|
390 | 382 | # TODO add flags to packages (like cs-ledger) so we can turn off tests that will |
391 | 383 | # not build for windows on a per package bases (rather than using --disable-tests). |
392 | 384 | # 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 | | - }) |
417 | 385 | ]; |
418 | 386 | }); |
419 | 387 | in |
|
0 commit comments