-
Notifications
You must be signed in to change notification settings - Fork 1
/
shell.nix
62 lines (55 loc) · 1.75 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{ sources ? import ./nix/sources.nix
, pkgs ? import sources.nixpkgs {} }:
with pkgs;
let
fake-lsb-release = pkgs.writeScriptBin "lsb_release" ''
#!${pkgs.runtimeShell}
case "$1" in
-i) echo "nixos";;
-r) echo "nixos";;
esac
'';
in
pkgs.mkShell {
name = "dev-shell";
buildInputs = [
gdb
bazel_4
buildifier # Bazel BUILD file formatter
go
clojure
fake-lsb-release
haskell.compiler.ghc8104
haskellPackages.cabal-install
haskellPackages.tasty-discover
haskellPackages.cabal-fmt # For formatting .cabal files, example
# invocation: `cabal-fmt -i ldfi.cabal`.
haskellPackages.stylish-haskell # For import statement formatting, can be
# invoked from spacemacs via `, F`.
haskellPackages.ormolu # Haskell code formatting, to format all files in the
# current directory: `ormolu --mode inplace $(find . -name '*.hs')`.
nixpkgs-fmt # Nix code formatting, example invocation: `nixpkgs-fmt default.nix`.
git
nix
niv
direnv
lorri
nix-index
z3
zlib.dev
zlib.out
freetype.dev
pkgconfig # Use `pkg-config --libs zlib` from inside the shell to figure out
# what to pass to GraalVM's native-image.
] ++ lib.optionals stdenv.hostPlatform.isDarwin
[ darwin.apple_sdk.frameworks.Foundation
darwin.apple_sdk.frameworks.CoreFoundation
];
# The following is needed for gdb to work, otherwise we get an error saying:
# `ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'`.
# (Source: https://github.com/NixOS/nixpkgs/issues/88711).
shellHook = ''
unset _PYTHON_HOST_PLATFORM
unset _PYTHON_SYSCONFIGDATA_NAME
'';
}