Skip to content
Closed
Changes from all 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
15 changes: 11 additions & 4 deletions nix/modules/project/settings/all.nix
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,18 @@ in
for release-worthiness.
'';
impl = enable:
let
# A version that doesn't break against Rust derivations
# https://github.com/srid/haskell-flake/issues/292
buildFromSdist' = drv:
if !lib.hasAttr "override" drv then drv else buildFromSdist drv;
in
if enable then
(pkg: lib.pipe pkg [
buildFromSdist
(x: log.traceDebug "${name}.buildFromSdist ${x.outPath}" x)
]) else null;
(pkg:
lib.pipe pkg [
buildFromSdist'
(x: log.traceDebug "${name}.buildFromSdist ${x.outPath}" x)
]) else null;
};

removeReferencesTo = {
Expand Down