summaryrefslogtreecommitdiffstats
path: root/shell.nix
blob: 7fc0947155bb87a746ab9db7b0d686172822cc7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ compiler ? "default"
, nixpkgs ? import <nixpkgs> {}
}: let

  inherit (nixpkgs) lib pkgs;

  haskellPackages =
    if compiler == "default" then
      pkgs.haskellPackages
    else
      pkgs.haskell.packages.${compiler};

  drv = haskellPackages.callPackage (import ./.) {};

in

  lib.overrideDerivation drv.env (oldAttrs: {
    buildInputs = [
      pkgs.cabal-install
    ];
  })