Commit 95735f19 authored by Vaibhav Sagar's avatar Vaibhav Sagar

Enable dynamic loading with Nix

parent c2e9e138
...@@ -22,8 +22,15 @@ let ...@@ -22,8 +22,15 @@ let
dontCheck = pkgs.haskell.lib.dontCheck; dontCheck = pkgs.haskell.lib.dontCheck;
haskellPackages = pkgs.haskellPackages.override { haskellPackages = pkgs.haskellPackages.override {
overrides = self: super: { overrides = self: super: {
ihaskell = dontCheck ( ihaskell = pkgs.haskell.lib.overrideCabal (
self.callCabal2nix "ihaskell" src {}); self.callCabal2nix "ihaskell" src {}) (_drv: {
doCheck = false;
postPatch = ''
substituteInPlace ./src/IHaskell/Eval/Evaluate.hs --replace \
'hscTarget = objTarget flags' \
'hscTarget = HscInterpreted'
'';
});
ghc-parser = self.callCabal2nix "ghc-parser" "${src}/ghc-parser" {}; ghc-parser = self.callCabal2nix "ghc-parser" "${src}/ghc-parser" {};
ipython-kernel = self.callCabal2nix "ipython-kernel" "${src}/ipython-kernel" {}; ipython-kernel = self.callCabal2nix "ipython-kernel" "${src}/ipython-kernel" {};
} // displays self; } // displays self;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment