Skip to content

Commit

Permalink
feat(build): Add feedback and fourmolu
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillespie committed Jun 22, 2023
1 parent c691dd8 commit d821075
Show file tree
Hide file tree
Showing 3 changed files with 251 additions and 15 deletions.
246 changes: 237 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
inputs.haskellNix.url = "github:input-output-hk/haskell.nix";
inputs.nixpkgs.follows = "haskellNix/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils, haskellNix }:
inputs.feedback.url = "github:NorfairKing/feedback";
outputs = { self, nixpkgs, flake-utils, haskellNix, feedback }:
let
supportedSystems = [
"x86_64-linux"
Expand All @@ -22,6 +23,8 @@
};
});

feedbackOverlay = (final: prev: { feedback = feedback.packages.${system}.default; });

checks = (final: prev: {
fourmolu = final.haskell-nix.tool
final.hixProject.args.compiler-nix-name
Expand Down Expand Up @@ -57,6 +60,7 @@
haskellNix.overlay
haskellProject
checks
feedbackOverlay
];

pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
Expand Down
14 changes: 9 additions & 5 deletions nix/hix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
p.mingwW64
]);

shell.tools = {
cabal = "latest";
fourmolu = "latest";
hlint = "latest";
haskell-language-server = "latest";
shell = {
tools = {
cabal = "latest";
fourmolu = "latest";
hlint = "latest";
haskell-language-server = "latest";
};

buildInputs = [pkgs.feedback];
};
}

0 comments on commit d821075

Please sign in to comment.