-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
29 lines (29 loc) · 1.06 KB
/
shell.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
let
extras =
import ./nix/extras.nix //
import ./nix/gitignore.nix { inherit (pkgs) lib; };
pkgs = extras.pinnedPkgs {
specFile = ./nix/nixpkgs.json;
opts = { config = { packageOverrides = import ./nix/package-overrides.nix; }; };
};
webpack = pkgs.callPackage ./content/js { inherit pkgs extras; };
content = pkgs.callPackage ./content { inherit hakyllColEx pkgs extras; };
hakyllColEx = pkgs.callPackage ./hakyll { inherit pkgs extras; };
# ijavascript = extras.callNpm {
# inherit pkgs;
# name = "ijavascript";
# versionSpec = "^5.0.20";
# };
in
pkgs.mkShell {
LC_ALL = "en_US.UTF-8";
buildInputs =
# [ pkgs.python36Packages.jupyter ijavascript ] ++
hakyllColEx.nativeBuildInputs ++
content.nativeBuildInputs ++
webpack.nativeBuildInputs ++
(extras.purescriptDevEnv { inherit pkgs; }).buildInputs ++
(if pkgs.stdenv.isDarwin then [ pkgs.darwin.apple_sdk.frameworks.Cocoa ] else []) ++
(if pkgs.stdenv.isLinux then [ pkgs.glibcLocales ] else []);
shellHook = webpack.shellHook;
}