-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
42 lines (40 loc) · 1.15 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
let
pkgs = import (fetchTarball
"https://github.com/NixOS/nixpkgs/archive/df8e3bd110921621d175fad88c9e67909b7cb3d3.tar.gz"
) {};
futhark-rev = "a29f2f580f02bd9ac43201cf9a9eb5c6f1e6347b";
futhark-src = pkgs.applyPatches {
name = "futhark-patched";
src = (fetchTarball "https://github.com/diku-dk/futhark/archive/${futhark-rev}.tar.gz");
patches = [ ./futhark.patch ];
};
futhark-pinned = pkgs.haskellPackages.callPackage futhark-src { suffix = "nightly"; };
futhark-data = pkgs.python3Packages.buildPythonPackage {
name = "futhark-data";
version = "1.0";
src = pkgs.fetchFromGitHub {
repo = "python-futhark-data";
owner = "diku-dk";
rev = "9a108a1530f3e8798c34c6266bdbed63830214ae";
sha256 = "1x9x2d6sb45x8a5aiqfa8qylhlhszidvpxha5k69dby78zxx8ndc";
};
propagatedBuildInputs = with pkgs.python3Packages; [
numpy
];
};
in
pkgs.stdenv.mkDerivation {
name = "shell";
buildInputs = with pkgs; [
opencl-headers
ocl-icd
futhark-pinned
gcc
(python38.withPackages (pypkgs: with pypkgs; [
numpy
pyopencl
statsmodels
futhark-data
]))
];
}