blob: 6d8dda1c07e8639e94ca69688a6dfd56e6d70909 (
plain) (
blame)
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 = "Personal XMonad configuration.";
inputs = {
haskell-nix.url = "github:input-output-hk/haskell.nix";
nixpkgs.follows = "haskell-nix/nixpkgs-unstable";
flake-utils.follows = "haskell-nix/flake-utils";
};
outputs = { nixpkgs, flake-utils, haskell-nix, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system overlays;
inherit (haskell-nix) config;
};
overlays = [
haskell-nix.overlay
(final: _: {
xmonad-ng = final.haskell-nix.project' {
src = ./.;
compiler-nix-name = "ghc8107";
shell = {
tools = {
brittany = { };
cabal = { };
haskell-language-server = { };
hlint = { };
};
buildInputs = with pkgs; [ nixfmt ];
};
};
})
];
flake = pkgs.xmonad-ng.flake { };
in flake // {
defaultPackage = flake.packages."xmonad-ng:exe:xmonad-ng";
});
}
|