-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
51 lines (48 loc) · 1.48 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
44
45
46
47
48
49
50
51
{
inputs = {
# Temporary until `haskell-updates` is merged. Move it back to `nixpkgs-unstable` once it is.
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils/main";
flake-compat = {
url = "github:edolstra/flake-compat/master";
flake = false;
};
};
description =
"process status display with automatic layout.";
outputs = { self, nixpkgs, flake-utils, ... }:
let
overlay = se: su: {
haskellPackages = su.haskellPackages.override {
overrides = hse: hsu: {
"bloohm" = hse.callCabal2nix "bloohm" self { };
};
};
bloohm = se.haskell.lib.justStaticExecutables se.haskellPackages.bloohm;
};
in {
inherit overlay;
} // flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ overlay ];
config = { allowBroken = true; }; # THIS MAKES ME SAD
};
in {
defaultPackage = pkgs.bloohm;
devShell = pkgs.haskellPackages.shellFor {
packages = p: [ p."bloohm" ];
buildInputs = [
pkgs.haskellPackages.haskell-language-server
pkgs.haskellPackages.cabal-install
pkgs.haskellPackages.ghcid
pkgs.haskellPackages.ormolu
pkgs.haskellPackages.hlint
pkgs.nixpkgs-fmt
pkgs.bash
];
withHoogle = false;
};
});
}