]> Git — Sourcephile - haskell/symantic-plaintext.git/blob - default.nix
reorganize source files
[haskell/symantic-plaintext.git] / default.nix
1 { pkgs ? import <nixpkgs> {}
2 , ghc ? "ghc901"
3 , withHoogle ? false
4 }:
5 let
6 haskellPackages =
7 if ghc == null
8 then pkgs.haskellPackages
9 else pkgs.haskell.packages.${ghc};
10 hs = haskellPackages.extend (with pkgs.haskell.lib; hself: hsuper:
11 {
12 }
13 );
14 in hs.symantic-document // {
15 shell = hs.shellFor {
16 #doBenchmark = true;
17 packages = p: [ p.symantic-document ];
18 nativeBuildInputs = [
19 hs.cabal-install
20 #hs.ghc-events
21 #hs.hs-speedscope
22 #hs.profiteur
23 #hs.eventlog2html
24 hs.ghcid
25 #hs.threadscope
26 #hs.ghc-events-analyze
27 #hs.haskell-language-server
28 #hs.hpc
29 ];
30 buildInputs = [
31 #hs.ghcid
32 #pkgs.ormolu
33 #pkgs.cabal2nix
34 #hs.hlint
35 ];
36 inherit withHoogle;
37 };
38 }