Switch to buildFromSdist (#221)

This commit is contained in:
Sridhar Ratnakumar 2024-02-05 07:56:41 -08:00 committed by GitHub
parent c301f31092
commit dd0d3b9d51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,8 @@
- #210: Add `extraLibraries` to `settings` module.
- #215: Improved debug logging.
- #216: Remove `debug` option (pass `--trace-verbose` to nix instead)
- Breaking changes
- #221: Switch to `buildFromSdist`, to allow using non-standard package sets (wherein `cabal-install` is otherwise built without using user's overrides)
## 0.4.0 (Aug 22, 2023)

View File

@ -12,8 +12,10 @@
}:
let
fromSdist = self.buildFromCabalSdist or
(log.traceWarning "Your nixpkgs does not have hs.buildFromCabalSdist" (pkg: pkg));
# NOTE: We do not use the optimized version, `buildFromCabalSdist`, because it
# breaks in some cases. See https://github.com/srid/haskell-flake/pull/220
fromSdist = pkgs.haskell.lib.buildFromSdist or
(log.traceWarning "Your nixpkgs does not have hs.buildFromSdist" (pkg: pkg));
mkNewStorePath = name: src:
# Since 'src' may be a subdirectory of a store path