forked from haskell-infra/www.haskell.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
35 lines (35 loc) · 874 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ sources ? import ../nix/sources.nix
, pkgs ? import sources.nixpkgs {}
}:
(pkgs.haskellPackages.developPackage {
name = builtins.baseNameOf ./.;
root = pkgs.nix-gitignore.gitignoreSourcePure [
../.gitignore
"*.markdown"
"*.md"
"*.html"
"templates/*"
"css/*"
"js/*"
"img/*"
".git"
".github"
] ./.;
modifier = drv: pkgs.haskell.lib.overrideCabal drv (attrs: {
buildTools = with pkgs.haskellPackages; (attrs.buildTools or []) ++ [
cabal-install
ghcid
hakyll
pkgs.linkchecker
];
});
}).overrideAttrs (old: {
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
LC_ALL = "C.UTF-8";
shellHook = ''
echo ""
echo " Haskell.org Dev Shell"
echo " \`linkchecker\`, \`ghcid\` and \`cabal\` are provided in this environment."
echo ""
'';
})