Skip to content

Commit

Permalink
Don't use src = ./. for stack2nix itself. See input-output-hk#119.
Browse files Browse the repository at this point in the history
This is NOT the fix for input-output-hk#119; that one is about making stack2nix
generate fixes like this one, for all packages you run it on.
  • Loading branch information
nh2 committed Aug 25, 2018
1 parent 88fd8be commit f9484fa
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ with pkgs.haskell.lib;
((import ./stack2nix.nix { inherit pkgs; }).override {
overrides = self: super: {
# TODO: separate out output
stack2nix = justStaticExecutables super.stack2nix;
stack2nix = justStaticExecutables (overrideCabal super.stack2nix (old: {
src = builtins.path {
name = "stack2nix";
path = ./.;
# Filter hidden dirs (.), e.g. .git and .stack-work
# TODO Remove once https://github.com/input-output-hk/stack2nix/issues/119 is done
filter = path: type:
!(pkgs.lib.hasPrefix "." (baseNameOf path))
&& baseNameOf path != "stack.yaml";
};
}));

# https://github.com/commercialhaskell/lts-haskell/issues/149
stack = doJailbreak super.stack;
Expand Down

0 comments on commit f9484fa

Please sign in to comment.