Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cabal2nix integration for IFD-less evalutation #382

Merged
merged 10 commits into from
Dec 23, 2024
Prev Previous commit
Next Next commit
chore: fmt; refactor
rsrohitsingh682 committed Dec 16, 2024
commit 2190e17e56f5966d3a36d457794fc0abeb43312c
17 changes: 5 additions & 12 deletions nix/build-haskell-package.nix
Original file line number Diff line number Diff line change
@@ -41,18 +41,11 @@ lib.pipe root
if builtins.pathExists path
then
(log.traceDebug "${name}.callPackage[cabal2nix] ${path}")
self.callPackage
path
{ }
(self.callPackage path { })
else
let
pkg =
(log.traceDebug "${name}.callCabal2nix ${root}")
self.callCabal2nix
name
root
{ };
in
(log.traceDebug "${name}.cabal2nixDeriver ${pkg.cabal2nixDeriver.outPath}" pkg)
lib.pipe (self.callCabal2nix name root { })
[
(pkg: log.traceDebug "${name}.callCabal2nix root=${root} deriver=${pkg.cabal2nixDeriver.outPath}" pkg)
]
)
]