-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.nix
44 lines (40 loc) · 920 Bytes
/
dev.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
with import <nixpkgs> {};
let
osu-micro-benchmarks = stdenv.mkDerivation {
name = "osu-micro-benchmarks";
src = fetchurl {
url = https://github.com/federatedcloud/osu-micro-benchmarks-5.6.2/releases/download/v5.6.2/osu-micro-benchmarks-5.6.2.tar.gz;
sha256 = "164kc3xlfl7agidkj9g1bpjlls0im4m6rs411j36fk7r5nb7wbg2";
};
phases = "installPhase";
installPhase = ''
mkdir -p $out/
tar -C $out/ -xzf $src
'';
};
in
stdenv.mkDerivation {
name = "openmpiEnv";
buildInputs = [
nix
bash
vim
gdb
git
# MPI-related packages
binutils
gfortran
openmpi
openssh
# Benchmarking
hpl
#osu-micro-benchmarks
];
src = null;
shellHook = ''
export LANG=en_US.UTF-8
ln -sfn ${hpl.out}/bin/xhpl ~/
'';
}
# ln -sfn ${hpl.out}/bin/xhpl /usr/bin
# ln -sfn ${osu-micro-benchmarks.out}/bin/* /usr/bin