|
126 | 126 | mithril = { |
127 | 127 | url = "github:input-output-hk/mithril?ref=2603.1"; |
128 | 128 | inputs.nixpkgs.follows = "nixpkgs-unstable"; |
129 | | - }; |
| 129 | + }; |
130 | 130 | }; |
131 | 131 |
|
132 | 132 | outputs = |
|
169 | 169 | { |
170 | 170 | packages = |
171 | 171 | { } |
172 | | - // pkgs.lib.optionalAttrs (pkgs.stdenv.hostPlatform.isDarwin && !pkgs.stdenv.cc.nativeLibc && options.packages ? crypton-x509-system) { |
173 | | - # Workaround for broken nixpkgs darwin.security_tool in |
174 | | - # Mojave. This mirrors the workaround in nixpkgs |
175 | | - # haskellPackages. |
176 | | - # |
177 | | - # ref: |
178 | | - # https://github.com/NixOS/nixpkgs/pull/47676 |
179 | | - # https://github.com/NixOS/nixpkgs/issues/45042 |
180 | | - crypton-x509-system.components.library.preBuild = "substituteInPlace System/X509/MacOS.hs --replace security /usr/bin/security"; |
181 | | - }; |
| 172 | + // |
| 173 | + pkgs.lib.optionalAttrs |
| 174 | + ( |
| 175 | + pkgs.stdenv.hostPlatform.isDarwin |
| 176 | + && !pkgs.stdenv.cc.nativeLibc |
| 177 | + && options.packages ? crypton-x509-system |
| 178 | + ) |
| 179 | + { |
| 180 | + # Workaround for broken nixpkgs darwin.security_tool in |
| 181 | + # Mojave. This mirrors the workaround in nixpkgs |
| 182 | + # haskellPackages. |
| 183 | + # |
| 184 | + # ref: |
| 185 | + # https://github.com/NixOS/nixpkgs/pull/47676 |
| 186 | + # https://github.com/NixOS/nixpkgs/issues/45042 |
| 187 | + crypton-x509-system.components.library.preBuild = "substituteInPlace System/X509/MacOS.hs --replace security /usr/bin/security"; |
| 188 | + }; |
182 | 189 | }; |
183 | 190 | in |
184 | 191 | { |
|
281 | 288 | backend = self.cardano-node; |
282 | 289 | }; |
283 | 290 | # Local test cluster and mock metadata server |
284 | | - inherit (project.hsPkgs.cardano-wallet.components.exes) mock-token-metadata-server wallet-key-export; |
| 291 | + inherit (project.hsPkgs.cardano-wallet.components.exes) |
| 292 | + mock-token-metadata-server |
| 293 | + wallet-key-export |
| 294 | + ; |
285 | 295 | inherit (project.hsPkgs.cardano-wallet-benchmarks.components.exes) benchmark-history; |
286 | 296 | inherit (project.hsPkgs.local-cluster.components.exes) local-cluster; |
287 | 297 | integration-exe = project.hsPkgs.cardano-wallet-integration.components.exes.integration-exe; |
|
306 | 316 | unit-cardano-wallet-unit = project.hsPkgs.cardano-wallet-unit.components.tests.unit; |
307 | 317 | unit-cardano-wallet-primitive = project.hsPkgs.cardano-wallet-primitive.components.tests.test; |
308 | 318 | unit-cardano-wallet-secrets = project.hsPkgs.cardano-wallet-secrets.components.tests.test; |
309 | | - unit-cardano-wallet-network-layer = project.hsPkgs.cardano-wallet-network-layer.components.tests.unit; |
| 319 | + unit-cardano-wallet-network-layer = |
| 320 | + project.hsPkgs.cardano-wallet-network-layer.components.tests.unit; |
310 | 321 | unit-cardano-wallet-test-utils = project.hsPkgs.cardano-wallet-test-utils.components.tests.unit; |
311 | 322 | unit-cardano-wallet-launcher = project.hsPkgs.cardano-wallet-launcher.components.tests.unit; |
312 | | - unit-cardano-wallet-application-tls = project.hsPkgs.cardano-wallet-application-tls.components.tests.unit; |
| 323 | + unit-cardano-wallet-application-tls = |
| 324 | + project.hsPkgs.cardano-wallet-application-tls.components.tests.unit; |
313 | 325 | unit-cardano-numeric = project.hsPkgs.cardano-numeric.components.tests.unit; |
314 | | - unit-cardano-wallet-blackbox-benchmarks = project.hsPkgs.cardano-wallet-blackbox-benchmarks.components.tests.unit; |
| 326 | + unit-cardano-wallet-blackbox-benchmarks = |
| 327 | + project.hsPkgs.cardano-wallet-blackbox-benchmarks.components.tests.unit; |
315 | 328 | unit-delta-chain = project.hsPkgs.delta-chain.components.tests.unit; |
316 | 329 | unit-delta-store = project.hsPkgs.delta-store.components.tests.unit; |
317 | 330 | unit-delta-table = project.hsPkgs.delta-table.components.tests.unit; |
318 | 331 | unit-delta-types = project.hsPkgs.delta-types.components.tests.unit; |
319 | 332 | unit-std-gen-seed = project.hsPkgs.std-gen-seed.components.tests.unit; |
320 | 333 | unit-wai-middleware-logging = project.hsPkgs.wai-middleware-logging.components.tests.unit; |
321 | | - unit-benchmark-history = project.hsPkgs.cardano-wallet-benchmarks.components.tests.benchmark-history-test; |
| 334 | + unit-benchmark-history = |
| 335 | + project.hsPkgs.cardano-wallet-benchmarks.components.tests.benchmark-history-test; |
322 | 336 | wallet-key-export-test = project.hsPkgs.cardano-wallet.components.tests.wallet-key-export-test; |
323 | 337 |
|
324 | 338 | # Combined project coverage report |
|
446 | 460 | format = "zip"; |
447 | 461 | }; |
448 | 462 | # Per-test-exe bundles for Windows CI. |
449 | | - tests = let |
450 | | - mkTest = name: test: |
451 | | - import ./nix/windows-test-exe.nix { |
452 | | - inherit pkgs test name; |
| 463 | + tests = |
| 464 | + let |
| 465 | + mkTest = |
| 466 | + name: test: |
| 467 | + import ./nix/windows-test-exe.nix { |
| 468 | + inherit pkgs test name; |
| 469 | + }; |
| 470 | + in |
| 471 | + { |
| 472 | + wallet-unit = import ./nix/windows-test-exe.nix { |
| 473 | + inherit pkgs; |
| 474 | + name = "wallet-unit"; |
| 475 | + test = windowsPackages.unit-cardano-wallet-unit; |
| 476 | + extraPkgs = [ windowsPackages.cardano-cli ]; |
| 477 | + testDataDirs = [ |
| 478 | + ./lib/unit/test/data |
| 479 | + ./lib/local-cluster/test/data |
| 480 | + ]; |
453 | 481 | }; |
454 | | - in { |
455 | | - wallet-unit = import ./nix/windows-test-exe.nix { |
456 | | - inherit pkgs; |
457 | | - name = "wallet-unit"; |
458 | | - test = windowsPackages.unit-cardano-wallet-unit; |
459 | | - extraPkgs = [windowsPackages.cardano-cli]; |
460 | | - testDataDirs = [ |
461 | | - ./lib/unit/test/data |
462 | | - ./lib/local-cluster/test/data |
463 | | - ]; |
464 | | - }; |
465 | | - wallet-primitive = import ./nix/windows-test-exe.nix { |
466 | | - inherit pkgs; |
467 | | - name = "wallet-primitive"; |
468 | | - test = windowsPackages.unit-cardano-wallet-primitive; |
469 | | - testDataDirs = [./lib/primitive/test/data]; |
470 | | - }; |
471 | | - wallet-secrets = mkTest "wallet-secrets" windowsPackages.unit-cardano-wallet-secrets; |
472 | | - wallet-network-layer = mkTest "wallet-network-layer" windowsPackages.unit-cardano-wallet-network-layer; |
473 | | - wallet-test-utils = mkTest "wallet-test-utils" windowsPackages.unit-cardano-wallet-test-utils; |
474 | | - wallet-launcher = mkTest "wallet-launcher" windowsPackages.unit-cardano-wallet-launcher; |
475 | | - wallet-application-tls = mkTest "wallet-application-tls" windowsPackages.unit-cardano-wallet-application-tls; |
476 | | - cardano-numeric = mkTest "cardano-numeric" windowsPackages.unit-cardano-numeric; |
477 | | - wallet-blackbox-benchmarks = import ./nix/windows-test-exe.nix { |
478 | | - inherit pkgs; |
479 | | - name = "wallet-blackbox-benchmarks"; |
480 | | - test = windowsPackages.unit-cardano-wallet-blackbox-benchmarks; |
481 | | - testDataDirs = [./lib/wallet-benchmarks/test/data]; |
| 482 | + wallet-primitive = import ./nix/windows-test-exe.nix { |
| 483 | + inherit pkgs; |
| 484 | + name = "wallet-primitive"; |
| 485 | + test = windowsPackages.unit-cardano-wallet-primitive; |
| 486 | + testDataDirs = [ ./lib/primitive/test/data ]; |
| 487 | + }; |
| 488 | + wallet-secrets = mkTest "wallet-secrets" windowsPackages.unit-cardano-wallet-secrets; |
| 489 | + wallet-network-layer = mkTest "wallet-network-layer" windowsPackages.unit-cardano-wallet-network-layer; |
| 490 | + wallet-test-utils = mkTest "wallet-test-utils" windowsPackages.unit-cardano-wallet-test-utils; |
| 491 | + wallet-launcher = mkTest "wallet-launcher" windowsPackages.unit-cardano-wallet-launcher; |
| 492 | + wallet-application-tls = mkTest "wallet-application-tls" windowsPackages.unit-cardano-wallet-application-tls; |
| 493 | + cardano-numeric = mkTest "cardano-numeric" windowsPackages.unit-cardano-numeric; |
| 494 | + wallet-blackbox-benchmarks = import ./nix/windows-test-exe.nix { |
| 495 | + inherit pkgs; |
| 496 | + name = "wallet-blackbox-benchmarks"; |
| 497 | + test = windowsPackages.unit-cardano-wallet-blackbox-benchmarks; |
| 498 | + testDataDirs = [ ./lib/wallet-benchmarks/test/data ]; |
| 499 | + }; |
| 500 | + delta-chain = mkTest "delta-chain" windowsPackages.unit-delta-chain; |
| 501 | + delta-store = mkTest "delta-store" windowsPackages.unit-delta-store; |
| 502 | + delta-table = mkTest "delta-table" windowsPackages.unit-delta-table; |
| 503 | + delta-types = mkTest "delta-types" windowsPackages.unit-delta-types; |
| 504 | + std-gen-seed = mkTest "std-gen-seed" windowsPackages.unit-std-gen-seed; |
| 505 | + wai-middleware-logging = mkTest "wai-middleware-logging" windowsPackages.unit-wai-middleware-logging; |
482 | 506 | }; |
483 | | - delta-chain = mkTest "delta-chain" windowsPackages.unit-delta-chain; |
484 | | - delta-store = mkTest "delta-store" windowsPackages.unit-delta-store; |
485 | | - delta-table = mkTest "delta-table" windowsPackages.unit-delta-table; |
486 | | - delta-types = mkTest "delta-types" windowsPackages.unit-delta-types; |
487 | | - std-gen-seed = mkTest "std-gen-seed" windowsPackages.unit-std-gen-seed; |
488 | | - wai-middleware-logging = mkTest "wai-middleware-logging" windowsPackages.unit-wai-middleware-logging; |
489 | | - }; |
490 | 507 | e2e = import ./nix/windows-test-exe.nix { |
491 | 508 | inherit pkgs; |
492 | 509 | name = "e2e"; |
|
0 commit comments