Skip to content

Commit

Permalink
filter nulls in packageDb
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Jun 21, 2024
1 parent d79d9d1 commit 09383ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ghc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
unwanted = if noLocalsInDeps then config.internal.packageNames else targets;
bInputs = p: p.buildInputs ++ p.propagatedBuildInputs;
isWanted = p: !(p ? pname && lib.elem p.pname unwanted);
targetDeps = builtins.filter isWanted (lib.concatMap bInputs (map (p: ghc.${p}) targets));
targetDeps = lib.filter isWanted (lib.filter (a: a != null) (lib.concatMap bInputs (map (p: ghc.${p}) targets)));
in lib.optionals env.localDeps targetDeps ++ extraHs env ghc;

solverGhc = env: let
Expand Down

0 comments on commit 09383ad

Please sign in to comment.