Skip to content

Commit

Permalink
WIP test
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Feb 10, 2023
1 parent eebb9ed commit efc8b4d
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions test/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,26 @@
];
perSystem = { self', pkgs, ... }: {
haskellProjects.default = {
imports =
let
defaults = {
devShell = {
tools = hp: {
# Some buildTools are included by default. If you do not want them,
# set them to 'null' here.
ghcid = null;
# You can also add additional build tools.
fzf = pkgs.fzf;
};
hlsCheck.enable = true;
};
};
in
[ defaults ];
overrides = self: super: {
# Custom library overrides (here, "foo" comes from a flake input)
foo = self.callCabal2nix "foo" (inputs.haskell-multi-nix + /foo) { };
};
devShell = {
tools = hp: {
# Some buildTools are included by default. If you do not want them,
# set them to 'null' here.
ghcid = null;
# You can also add additional build tools.
fzf = pkgs.fzf;
};
hlsCheck.enable = true;
};
};
# haskell-flake doesn't set the default package, but you can do it here.
packages.default = self'.packages.haskell-flake-test;
Expand Down

0 comments on commit efc8b4d

Please sign in to comment.