-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathflake.nix
43 lines (41 loc) · 1.16 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
description = "Library for manipulating Git repositories";
inputs = {
nixpkgs.follows = "haskellNix/nixpkgs-unstable";
haskellNix.url = "github:input-output-hk/haskell.nix";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, haskellNix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system overlays;
inherit (haskellNix) config;
};
flake = pkgs.gitlib-repo.flake {
};
overlays = [ haskellNix.overlay
(final: prev: {
gitlib-repo =
final.haskell-nix.project' {
src = ./.;
supportHpack = true;
compiler-nix-name = "ghc910";
shell.tools = {
cabal = {};
haskell-language-server = {};
# hlint = {};
};
shell.buildInputs = with pkgs; [
pkg-config
];
};
})
];
in {
packages.default = flake.packages."git-monitor:exe:git-monitor";
devShell = flake.devShell // {
withHoogle = true;
};
});
}