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