Skip to content

Commit

Permalink
Merge pull request #121 from nh2/dont-use-full-src-for-stack2nix-itself
Browse files Browse the repository at this point in the history
Don't use `src = ./.` for stack2nix itself. See #119.
  • Loading branch information
domenkozar authored Aug 25, 2018
2 parents 88fd8be + f9484fa commit 030d161
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 030d161

Please sign in to comment.