]> Git — Sourcephile - haskell/symantic-parser.git/blob - default.nix
doc: update the ReadMe and ChangeLog
[haskell/symantic-parser.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;
11 hself: hsuper:
12 {
13 data-fix = doJailbreak hsuper.data-fix;
14 primitive = doJailbreak hsuper.primitive;
15 assoc = doJailbreak hsuper.assoc;
16 these = doJailbreak hsuper.these;
17 dump-core = dontCheck (unmarkBroken hsuper.dump-core);
18
19 #symantic-parser = enableExecutableProfiling (doCheck ( hself.callCabal2nix "symantic-parser" ./. {}));
20 } //
21 packageSourceOverrides {
22 symantic-parser = ./.;
23 } hself hsuper
24 );
25 in hs.symantic-parser // {
26 shell = hs.shellFor {
27 packages = p: [ p.symantic-parser ];
28 nativeBuildInputs = [
29 #pkgs.cabal-install
30 #hs.cabal-install
31 pkgs.cabal-install
32 #hs.haskell-language-server
33 #hs.hpc
34 ];
35 buildInputs = [
36 #hs.ghcid
37 #hs.ormolu
38 #hs.hlint
39 #pkgs.nixpkgs-fmt
40 ];
41 inherit withHoogle;
42 };
43 }