-
Notifications
You must be signed in to change notification settings - Fork 1
/
shell.nix
20 lines (16 loc) · 674 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ sources ? import nix/sources.nix {} }:
let
pkgs = import sources.nixpkgs {};
haskellDevelopmentTools = with pkgs.haskellPackages;
[ cabal-install stylish-haskell ];
website = import ./. { inherit sources; };
in
pkgs.lib.overrideDerivation website.env (old: {
nativeBuildInputs = old.nativeBuildInputs ++ haskellDevelopmentTools ++ [ pkgs.s3cmd ];
# Nix's glibc has weird locale settings on Linux, which make Haskell
# binaries unable to handle UTF-8 by default. This fixes that
# problem.
LOCALE_ARCHIVE =
pkgs.lib.optionalString pkgs.buildPlatform.isLinux "${pkgs.buildPackages.glibcLocales}/lib/locale/locale-archive";
LANG = "C.UTF-8";
})