Skip to content

Commit 030d161

Browse files
authored
Merge pull request #121 from nh2/dont-use-full-src-for-stack2nix-itself
Don't use `src = ./.` for stack2nix itself. See #119.
2 parents 88fd8be + f9484fa commit 030d161

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

default.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@ with pkgs.haskell.lib;
55
((import ./stack2nix.nix { inherit pkgs; }).override {
66
overrides = self: super: {
77
# TODO: separate out output
8-
stack2nix = justStaticExecutables super.stack2nix;
8+
stack2nix = justStaticExecutables (overrideCabal super.stack2nix (old: {
9+
src = builtins.path {
10+
name = "stack2nix";
11+
path = ./.;
12+
# Filter hidden dirs (.), e.g. .git and .stack-work
13+
# TODO Remove once https://github.com/input-output-hk/stack2nix/issues/119 is done
14+
filter = path: type:
15+
!(pkgs.lib.hasPrefix "." (baseNameOf path))
16+
&& baseNameOf path != "stack.yaml";
17+
};
18+
}));
919

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

0 commit comments

Comments
 (0)