Skip to content

Commit

Permalink
Remove Bash strict mode from cabalProject2nix (#7)
Browse files Browse the repository at this point in the history
There is at least one unbound variable in callCabal2Nix that causes
strict mode to fail on downsteam repos.
  • Loading branch information
sellout authored Feb 22, 2025
2 parents fe91b2d + 3fc7faf commit 5a7ec2a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nix/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,11 @@ in {
cabalProject2nix = cabalProject: pkgs: hpkgs: overrides:
builtins.mapAttrs
(name: path:
pkgs.checkedDrv
((hpkgs.callCabal2nix name "${builtins.dirOf cabalProject}/${path}" {})
.overrideAttrs
overrides))
## FIXME: This is failing on some downstream packages when we use
## `checkedDrv` (which adds `-u`, among other things).
pkgs.shellchecked
((hpkgs.callCabal2nix name "${builtins.dirOf cabalProject}/${path}" {})
.overrideAttrs
overrides))
(parseCabalProject cabalProject);
}

0 comments on commit 5a7ec2a

Please sign in to comment.