]> Git — Sourcephile - haskell/symantic-base.git/blob - default.nix
make: add checks
[haskell/symantic-base.git] / default.nix
1 { pkgs ? import <nixpkgs> {}
2 , inputs ? {}
3 , ghc ? null
4 , withHoogle ? false
5 }:
6 let
7 haskellPackages =
8 if ghc == null
9 then pkgs.haskellPackages
10 else pkgs.haskell.packages.${ghc};
11 hs = haskellPackages.extend (with pkgs.haskell.lib; hself: hsuper: {
12 symantic-base = buildFromSdist (hself.callCabal2nix "symantic-base" ./. {});
13 });
14 in hs.symantic-base // {
15 shell = hs.shellFor {
16 doBenchmark = true;
17 packages = p: [ p.symantic-base ];
18 nativeBuildInputs = [
19 hs.cabal-install
20 hs.ghcid
21 hs.haskell-language-server
22 hs.hlint
23 ];
24 buildInputs = [
25 ];
26 inherit withHoogle;
27 };
28 }