Skip to content

Commit 9cb782f

Browse files
committed
fix: buildFromSdist default for haskell-flake managed packages only
1 parent e43bc63 commit 9cb782f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nix/modules/project/defaults.nix

+5-5
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ in
131131
else { };
132132

133133
defaultText = ''
134-
Speed up builds by disabling haddock and library profiling.
134+
Speed up builds by disabling haddock and library profiling. Also ensures
135+
release-worthiness.
135136
136137
This uses `local.toDefinedProject` option to determine which packages to
137138
override. Thus, it applies to both local packages as well as
@@ -144,6 +145,7 @@ in
144145
# Disabling haddock and profiling is mainly to speed up Nix builds.
145146
haddock = lib.mkDefault false; # Because, this is end-user software. No need for library docs.
146147
libraryProfiling = lib.mkDefault false; # Avoid double-compilation.
148+
buildFromSdist = lib.mkDefault true; # Ensure release-worthiness
147149
};
148150
};
149151

@@ -191,11 +193,9 @@ in
191193
}
192194
else { };
193195
defaultText = ''
194-
Make sure all files we use are included in the sdist, as a check for release-worthiness.
196+
Nothing is changed by default.
195197
'';
196-
default = {
197-
buildFromSdist = lib.mkDefault true;
198-
};
198+
default = { };
199199
};
200200

201201
projectModules.output = mkOption {

0 commit comments

Comments
 (0)