hackagePackages.hnix: Fix build

hnix 0.9.0 does not provide an executable for ghc <8.10 anymore.
So we need to disable optparse-applicative completion generation for all other versions.
This commit is contained in:
Malte Brandy 2020-06-21 21:23:47 +02:00
parent ffbf8ba912
commit bc8b615344
No known key found for this signature in database
GPG Key ID: 226A2D41EF5378C9
2 changed files with 9 additions and 4 deletions

View File

@ -219,10 +219,12 @@ self: super: {
# base bound
digit = doJailbreak super.digit;
# 2020-06-05: HACK: does not passes own build suite - `dontCheck`
hnix = generateOptparseApplicativeCompletion "hnix" (
dontCheck super.hnix
);
# 2020-06-05: HACK: does not passes own build suite - `dontCheck` We should
# generate optparse-applicative completions for the hnix executable. Sadly
# building of the executable has been disabled for ghc < 8.10 in hnix.
# Generating the completions should be activated again, once we default to
# ghc 8.10.
hnix = dontCheck super.hnix;
# Fails for non-obvious reasons while attempting to use doctest.
search = dontCheck super.search;

View File

@ -132,4 +132,7 @@ self: super: {
excludes = ["package.yaml"];
});
# hnix 0.9.0 does not provide an executable for ghc < 8.10, so define completions here for now.
hnix = generateOptparseApplicativeCompletion "hnix" super.hnix;
}