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

47 lines
1.5 KiB
Nix
Raw Normal View History

2020-06-10 17:37:25 +02:00
{ config, pkgs, ... }: {
2019-04-19 03:11:51 +02:00
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 ++ "\""
: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
'';
2020-06-10 17:37:25 +02:00
# :def unpl \x -> return $ ":!${pkgs.haskellPackages.pointful}/bin/pointful \"" ++ x ++ "\""
2020-10-27 20:45:47 +01:00
# :def pl \x -> return $ ":!${pkgs.haskellPackages.pointfree}/bin/pointfree -v \"" ++ x ++ "\""
2021-04-07 09:37:57 +02:00
".stack/config.yaml".source =
let inherit (import <niveum/lib>) kieran;
in (pkgs.formats.yaml {}).generate "config.yaml" {
2020-06-10 17:37:25 +02:00
templates.params = {
author-name = kieran.name;
author-email = kieran.email;
copyright = "Copyright: (c) 2020 ${kieran.name}";
github-username = kieran.github;
};
2020-06-10 17:37:25 +02:00
};
2019-04-19 03:11:51 +02:00
};
2019-04-21 15:22:40 +02:00
services.hoogle = {
enable = false;
2019-04-21 15:22:40 +02:00
packages = import ./packages.nix;
2019-06-01 22:12:27 +02:00
port = 8091;
2019-04-21 15:22:40 +02:00
};
2020-06-10 17:37:25 +02:00
environment.systemPackages = with pkgs;
[
cabal2nix
cabal-install
hlint
2021-01-15 18:37:37 +01:00
haskellPackages.ormolu
2020-06-10 17:37:25 +02:00
(haskellPackages.ghcWithHoogle (import ./packages.nix))
] ++ map haskell.lib.justStaticExecutables [
haskellPackages.ghcid
haskellPackages.hasktags
2020-10-24 11:49:34 +02:00
# haskellPackages.hindent
2020-10-27 20:45:47 +01:00
# haskellPackages.pointfree
2020-06-10 17:37:25 +02:00
# haskellPackages.pointful
haskellPackages.hpack
];
2019-04-19 03:11:51 +02:00
}