summaryrefslogtreecommitdiff
path: root/Biz/Bild/Rules.nix
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Bild/Rules.nix')
-rw-r--r--Biz/Bild/Rules.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/Biz/Bild/Rules.nix b/Biz/Bild/Rules.nix
index a8695eb..f5f016f 100644
--- a/Biz/Bild/Rules.nix
+++ b/Biz/Bild/Rules.nix
@@ -3,6 +3,9 @@
with nixpkgs;
let
+ ghcCompiler = "ghc865";
+ ghcjsCompiler = "ghcjs86";
+
# provided by .envrc
root = builtins.getEnv "BIZ_ROOT";
@@ -50,8 +53,8 @@ let
${toString (lib.lists.subtractLists haskellDeps deps)}
''));
- ghc_ = mkGhc pkgs.haskell.packages.ghc865.ghcWithHoogle;
- ghcjs_ = mkGhc pkgs.haskell.packages.ghcjs86.ghcWithPackages;
+ ghc_ = mkGhc pkgs.haskell.packages.${ghcCompiler}.ghcWithHoogle;
+ ghcjs_ = mkGhc pkgs.haskell.packages.${ghcjsCompiler}.ghcWithPackages;
in {
ghc = main:
let
@@ -131,6 +134,7 @@ in {
# tools
nixpkgs.cmark
+ nixpkgs.haskell.packages.${ghcCompiler}.fast-tags
nixpkgs.figlet
nixpkgs.hlint
nixpkgs.lolcat
@@ -140,6 +144,7 @@ in {
nixpkgs.python37Packages.black
nixpkgs.python37Packages.pylint
nixpkgs.wemux
+ (pkgs.writeScriptBin "ftags" (builtins.readFile ../Ide/ftags.sh))
];
shellHook = ". ${./ShellHook.sh}";
};