Skip to content

Commit

Permalink
Try to pull in iohk-nix’s support for Template Haskell
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeata committed Mar 17, 2019
1 parent 41bd40e commit 37d2eb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nix/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
let localLib = import ./lib.nix; in

let
tttool-exe = pkgs:
let
Expand All @@ -10,7 +12,8 @@ let
name = "haskell-lib-source";
};
haskell = import haskellLib { inherit pkgs; };
nix-tools = import ./pkgs.nix { inherit haskell pkgs; };
iohk-module = localLib.nix-tools.iohk-module;
nix-tools = import ./pkgs.nix { inherit pkgs haskell iohk-module; };
in
nix-tools.tttool.components.exes.tttool;

Expand All @@ -30,7 +33,6 @@ let
in

let
localLib = import ./lib.nix;
pkgs = localLib.iohkNix.getPkgs {};
pkgs-static = localLib.iohkNix.getPkgs { crossSystem = localLib.systems.examples.musl64; };
pkgs-windows = localLib.iohkNix.getPkgs { crossSystem = localLib.systems.examples.mingwW64; };
Expand Down
2 changes: 2 additions & 0 deletions nix/pkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

{ pkgs ? import <nixpkgs> {}
, haskell
, iohk-module
, ...
}:
let
Expand All @@ -30,6 +31,7 @@ let
(hackage: { mintty = hackage.mintty."0.1.2".revisions.default; })
];
modules = [
(iohk-module { nixpkgs = pkgs; th-packages = [ "tttool" ]; })
{
# The plan produced by plan-to-nix does not include all necessary flag assignments
packages.haskeline.flags.terminfo = false;
Expand Down

0 comments on commit 37d2eb6

Please sign in to comment.