Skip to content

Allow merging cabalProject{,Local,Freeze} #1638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions modules/cabal-project.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ in {
default = "cabal.project";
};
cabalProject = mkOption {
type = nullOr str;
type = nullOr lines;
default = readIfExists config.src config.cabalProjectFileName;
};
cabalProjectLocal = mkOption {
type = nullOr str;
type = nullOr lines;
default = readIfExists config.src "${config.cabalProjectFileName}.local";
};
cabalProjectFreeze = mkOption {
type = nullOr str;
type = nullOr lines;
default = readIfExists config.src "${config.cabalProjectFileName}.freeze";
};
ghc = mkOption {
Expand All @@ -79,7 +79,7 @@ in {
description = "cabal-install to use when running `cabal configure`";
};
configureArgs = mkOption {
type = nullOr str;
type = nullOr (separatedString " ");
default = "";
description = ''
Extra arguments to pass to `cabal v2-configure`.
Expand All @@ -90,7 +90,7 @@ in {
'';
};
sha256map = mkOption {
type = nullOr unspecified;
type = nullOr (attrsOf (attrsOf str));
default = null;
description = ''
An alternative to adding `--sha256` comments into the
Expand Down