Merge pull request #182389 from lf-/fix-aeson-ts

haskellPackages.aeson-typescript: fix the testsuite and unbreak
This commit is contained in:
maralorn 2022-07-23 19:36:37 +02:00 committed by GitHub
commit 4f0b8bdb20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -94,7 +94,6 @@ broken-packages:
- aeson-streams
- aeson-t
- aeson-toolkit
- aeson-typescript
- aeson-utils
- aeson-via
- aeson-with

View File

@ -858,6 +858,16 @@ self: super: builtins.intersectAttrs super {
);
hercules-ci-cnix-store = super.hercules-ci-cnix-store.override { nix = pkgs.nixVersions.nix_2_9; };
# the testsuite fails because of not finding tsc without some help
aeson-typescript = overrideCabal (drv: {
testToolDepends = drv.testToolDepends or [] ++ [ pkgs.nodePackages.typescript ];
# the testsuite assumes that tsc is in the PATH if it thinks it's in
# CI, otherwise trying to install it.
#
# https://github.com/codedownio/aeson-typescript/blob/ee1a87fcab8a548c69e46685ce91465a7462be89/test/Util.hs#L27-L33
preCheck = "export CI=true";
}) super.aeson-typescript;
# Enable extra optimisations which increase build time, but also
# later compiler performance, so we should do this for user's benefit.
# Flag added in Agda 2.6.2

View File

@ -26129,8 +26129,6 @@ self: {
];
description = "Generate TypeScript definition files from your ADTs";
license = lib.licenses.bsd3;
hydraPlatforms = lib.platforms.none;
broken = true;
}) {};
"aeson-typescript_0_4_0_0" = callPackage