summaryrefslogtreecommitdiffstats
path: root/default.nix
blob: 102d406afc6abf91e03d9bf472f8bbeb4beff78a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ pkgs ? import (import ./nix/sources.nix).nixpkgs { } }: rec {
  haskellPackages = pkgs.haskellPackages.override {
    overrides = self: super: {
      sensors = self.callCabal2nix "sensors" ./. { };
      unlift = self.callCabal2nix "unlift" ./unlift { };
    };
  };
  inherit (haskellPackages) sensors;
  shell = haskellPackages.shellFor {
    packages = _: [ sensors ];
    buildInputs = [
      haskellPackages.cabal-install
      haskellPackages.ormolu
      pkgs.niv
    ];
    withHoogle = true;
  };
}