haskellPackages.aeson-typescript: fix the testsuite and unbreak

This commit is contained in:
Jade Lovelace
2022-07-23 10:19:57 -07:00
parent 52e48bb37e
commit aa41b54e51
3 changed files with 10 additions and 3 deletions
@@ -94,7 +94,6 @@ broken-packages:
- aeson-streams
- aeson-t
- aeson-toolkit
- aeson-typescript
- aeson-utils
- aeson-via
- aeson-with
@@ -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
-2
View File
@@ -26172,8 +26172,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