-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdefault.nix
49 lines (40 loc) · 1.22 KB
/
default.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
{ compiler ? "ghc901" }:
let
sources = import ./nix/sources.nix;
# `pinch` is fixed on haskell-updates but it'll be a while before
# it's backported and we prefer using the release branch
pkgs = import sources.nixpkgs { config.allowBroken = true; };
inherit (pkgs.haskell.lib) dontCheck;
baseHaskellPkgs = pkgs.haskell.packages.${compiler};
myHaskellPackages = baseHaskellPkgs.override {
overrides = self: super: {
parquet-hs = self.callCabal2nix "parquet-hs" (./.) { };
# I opened up an MR fixing `pinch` on nixpkgs by bumping the version of
# network `pinch` uses but it's causing issues here so instead we're
# just disabling the test suite here as that's where the error is.
pinch = dontCheck super.pinch;
relude = super.relude_1_0_0_1;
};
};
shell = myHaskellPackages.shellFor {
packages = p: with p; [ parquet-hs ];
buildInputs = with pkgs.haskellPackages; [
cabal-install
ghcid
ormolu
hlint
pkgs.niv
pkgs.nixpkgs-fmt
];
libraryHaskellDepends = [ ];
shellHook = ''
set -e
hpack
set +e
'';
};
in {
inherit shell;
inherit myHaskellPackages;
parquet-hs = myHaskellPackages.parquet-hs;
}