-
Notifications
You must be signed in to change notification settings - Fork 201
Expand file tree
/
Copy pathshell.nix
More file actions
57 lines (56 loc) · 1.31 KB
/
shell.nix
File metadata and controls
57 lines (56 loc) · 1.31 KB
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
# See header comment in default.nix for how to update sources.nix.
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs {};
python = pkgs.python313Packages;
haskell = pkgs.haskell.packages.ghc910;
in
pkgs.stdenv.mkDerivation {
name = "futhark";
buildInputs =
(import ./nix/pkgs-style.nix {pkgs=pkgs; haskell=haskell; python=python;}) ++
(with pkgs;
[
cabal-install
cacert
curl
file
git
haskell.ghc
haskell.weeder
haskell.haskell-language-server
haskellPackages.graphmod
# haskellPackages.apply-refact
xdot
pkg-config
zlib
zlib.out
cabal2nix
ghcid
niv
ispc
python.python
python.mypy
python.black
python.cycler
python.numpy
python.pyopencl
python.matplotlib
python.jsonschema
python.sphinx
python.sphinxcontrib-bibtex
imagemagick # needed for literate tests
]
++ lib.optionals (stdenv.isLinux)
[ opencl-headers
ocl-icd
(pkgs.callPackage ./nix/oclgrind.nix {})
rocmPackages.clr
])
;
# Locale setup so that 'nix-shell --pure' will not run in an ASCII
# environment.
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
LANG = "C.UTF-8";
LC_ALL = "C.UTF-8";
}