Skip to content

Commit

Permalink
Remove Bash strict mode from cabalProject2nix
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 committed Feb 22, 2025
1 parent fe91b2d commit 3fc7faf
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 3fc7faf

Please sign in to comment.