-
Notifications
You must be signed in to change notification settings - Fork 180
/
flake.nix
43 lines (40 loc) · 1.35 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 = "QFPL Applied FP Course";
inputs = {
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs";
};
outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let
nixpkgs = import inputs.nixpkgs { inherit system; };
applied-fp-course = { returnShellEnv ? false }:
nixpkgs.haskellPackages.developPackage {
inherit returnShellEnv;
root = ./.;
overrides = final: prev: with nixpkgs.haskell.lib; {
hw-json-simd = dontCheck (unmarkBroken prev.hw-json-simd);
hw-json-standard-cursor = doJailbreak prev.hw-json-standard-cursor;
natural = dontCheck (unmarkBroken prev.natural);
sqlite-simple-errors =
unmarkBroken (doJailbreak prev.sqlite-simple-errors);
waargonaut = dontCheck (doJailbreak prev.waargonaut);
};
};
in
{
devShell =
(applied-fp-course { returnShellEnv = true; }).overrideAttrs
(oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [
nixpkgs.cabal-install
nixpkgs.ghcid
nixpkgs.sqlite
];
});
});
}