Skip to content

Commit

Permalink
haskellPackages.cloudy: generate optparse-applicative completions
Browse files Browse the repository at this point in the history
  • Loading branch information
cdepillabout committed Oct 8, 2024
1 parent 4bd3895 commit 81a10ea
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkgs/development/haskell-modules/configuration-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,22 @@ self: super: builtins.intersectAttrs super {
(dontCheckIf (!pkgs.postgresql.doCheck))
];

cloudy =
pkgs.lib.pipe
super.cloudy
[
# The code-path that generates the optparse-applicative completions uses
# the HOME directory, so that must be set in order to generate completions.
# https://github.com/cdepillabout/cloudy/issues/10
( overrideCabal (oldAttrs: {
postInstall = ''
export HOME=$TMPDIR
'' + (oldAttrs.postInstall or "");
})
)
(self.generateOptparseApplicativeCompletions ["cloudy"])
];

# Wants running postgresql database accessible over ip, so postgresqlTestHook
# won't work (or would need to patch test suite).
domaindriven-core = dontCheck super.domaindriven-core;
Expand Down

0 comments on commit 81a10ea

Please sign in to comment.