Last active
June 14, 2019 05:49
-
-
Save puffnfresh/903b399d1e3ace6bf7258917def96d9b to your computer and use it in GitHub Desktop.
Revisions
-
puffnfresh revised this gist
Jun 14, 2019 . 2 changed files with 3 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,8 @@ { pkgs ? import <nixpkgs> {} }: let haskell = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz) { inherit pkgs; }; happyHack = config: let inherit (config.hsPkgs) happy; in "export happy_datadir=${happy.components.exes.happy}/share/${builtins.currentSystem}-ghc-${config.compiler.version}/${happy.identifier.name}-${happy.identifier.version}"; @@ -15,7 +13,8 @@ let ({ config, ... }: { packages.haskell-src.preBuild = happyHack config; packages.pretty-show.preBuild = happyHack config; nonReinstallablePkgs = [ "ghc" "ghc-boot" "ghci" "binary" "bytestring" "containers" "directory" "filepath" "hpc" "process" "time" "terminfo" "transformers" "unix" ]; }) ]; }; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +0,0 @@ -
puffnfresh revised this gist
Jun 13, 2019 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,8 @@ let haskell = import ./haskell.nix { inherit pkgs; }; # some sort of problem with datadir being wrong # same error as https://github.com/haskell/cabal/issues/5867 happyHack = config: let inherit (config.hsPkgs) happy; in "export happy_datadir=${happy.components.exes.happy}/share/${builtins.currentSystem}-ghc-${config.compiler.version}/${happy.identifier.name}-${happy.identifier.version}"; -
puffnfresh revised this gist
Jun 13, 2019 . 1 changed file with 21 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ { pkgs ? import <nixpkgs> {} }: let haskell = import ./haskell.nix { inherit pkgs; }; happyHack = config: let inherit (config.hsPkgs) happy; in "export happy_datadir=${happy.components.exes.happy}/share/${builtins.currentSystem}-ghc-${config.compiler.version}/${happy.identifier.name}-${happy.identifier.version}"; pkgSet = haskell.mkCabalProjectPkgSet { plan-pkgs = import ./pkgs.nix; modules = [ ({ config, ... }: { packages.haskell-src.preBuild = happyHack config; packages.pretty-show.preBuild = happyHack config; }) ]; }; in pkgSet.config.hsPkgs -
puffnfresh created this gist
Jun 13, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ diff --git a/modules/component-driver.nix b/modules/component-driver.nix index e957cdf..81571c6 100644 --- a/modules/component-driver.nix +++ b/modules/component-driver.nix @@ -34,7 +34,9 @@ in config.nonReinstallablePkgs = [ "rts" "ghc-heap" "ghc-prim" "integer-gmp" "integer-simple" "base" - "deepseq" "array" "ghc-boot-th" "pretty" "template-haskell" ]; + "deepseq" "array" "ghc-boot-th" "pretty" "template-haskell" + "ghc" "ghc-boot" "ghci" + "binary" "bytestring" "containers" "directory" "filepath" "hpc" "process" "time" "terminfo" "transformers" "unix" ]; options.hsPkgs = lib.mkOption { type = lib.types.unspecified;