mirror of
https://github.com/srid/haskell-flake.git
synced 2024-10-26 06:58:36 +03:00
Switch to buildFromSdist
(#221)
This commit is contained in:
parent
c301f31092
commit
dd0d3b9d51
@ -5,6 +5,8 @@
|
|||||||
- #210: Add `extraLibraries` to `settings` module.
|
- #210: Add `extraLibraries` to `settings` module.
|
||||||
- #215: Improved debug logging.
|
- #215: Improved debug logging.
|
||||||
- #216: Remove `debug` option (pass `--trace-verbose` to nix instead)
|
- #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)
|
## 0.4.0 (Aug 22, 2023)
|
||||||
|
|
||||||
|
@ -12,8 +12,10 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
fromSdist = self.buildFromCabalSdist or
|
# NOTE: We do not use the optimized version, `buildFromCabalSdist`, because it
|
||||||
(log.traceWarning "Your nixpkgs does not have hs.buildFromCabalSdist" (pkg: pkg));
|
# 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:
|
mkNewStorePath = name: src:
|
||||||
# Since 'src' may be a subdirectory of a store path
|
# Since 'src' may be a subdirectory of a store path
|
||||||
|
Loading…
Reference in New Issue
Block a user