1
0
mirror of https://github.com/kmein/niveum synced 2026-03-17 18:41:09 +01:00
Files
niveum/configs/packages/haskell/default.nix

46 lines
1.5 KiB
Nix
Raw Normal View History

2019-04-19 03:11:51 +02:00
{ config, pkgs, ... }:
{
home-manager.users.me.home.file = {
".ghc/ghci.conf".text = ''
:set editor vim
:def hoogle \s -> return $ ":!${pkgs.haskellPackages.hoogle}/bin/hoogle search --color -l --count=15 \"" ++ s ++ "\""
:def doc \s -> return $ ":!${pkgs.haskellPackages.hoogle}/bin/hoogle search --color -l --info \"" ++ s ++ "\""
:def pl \x -> return $ ":!${pkgs.haskellPackages.pointfree}/bin/pointfree -v \"" ++ x ++ "\""
:set prompt "\o033[1m%s\o033[1;34m λ\o033[0m "
:set -Wall
2019-09-24 16:47:18 +02:00
:set -XOverloadedStrings
2019-04-19 03:11:51 +02:00
'';
2019-04-22 22:40:41 +02:00
# :def unpl \x -> return $ ":!${pkgs.haskellPackages.pointful}/bin/pointful \"" ++ x ++ "\""
2019-09-24 16:47:37 +02:00
".stack/config.yaml".text = let inherit (config.niveum) user; in builtins.toJSON {
templates.params = {
author-name = user.name;
author-email = user.email;
copyright = "Copyright: (c) 2019 ${user.name}";
github-username = user.github;
};
};
2019-04-19 03:11:51 +02:00
};
2019-04-21 15:22:40 +02:00
services.hoogle = {
enable = true;
packages = import ./packages.nix;
2019-06-01 22:12:27 +02:00
port = 8091;
2019-04-21 15:22:40 +02:00
};
2019-04-19 03:11:51 +02:00
environment.systemPackages = with pkgs; [
cabal2nix
cabal-install
hlint
2019-10-12 12:23:24 +02:00
haskellPackages.brittany
# haskellPackages.hfmt
2019-04-21 15:22:40 +02:00
(haskellPackages.ghcWithHoogle (import ./packages.nix))
2019-04-19 03:11:51 +02:00
] ++ map haskell.lib.justStaticExecutables [
haskellPackages.ghcid
haskellPackages.hasktags
haskellPackages.hindent
haskellPackages.pointfree
2019-04-22 22:40:41 +02:00
# haskellPackages.pointful
2019-04-19 03:11:51 +02:00
haskellPackages.hpack
];
}