Skip to content

Commit

Permalink
nix: Filter source to not include .stack-work and similar (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
nh2 authored and NorfairKing committed Nov 30, 2018
1 parent 925f720 commit 975ef90
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ final:
with final.haskell.lib;
{
smosPackages =
let smosPkg = name:
(failOnAllWarnings (disableLibraryProfiling (final.haskellPackages.callCabal2nix name (../. + "/${name}") {})));
let pathFor = name:
builtins.path {
inherit name;
path = ../. + "/${name}";
filter = path: type:
!(final.lib.hasPrefix "." (baseNameOf path));
};
smosPkg = name:
(failOnAllWarnings (disableLibraryProfiling (final.haskellPackages.callCabal2nix name (pathFor name) {})));
in final.lib.genAttrs [
"smos"
"smos-data"
Expand Down

0 comments on commit 975ef90

Please sign in to comment.