forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
66 lines (59 loc) · 1.45 KB
/
flake.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
63
64
65
66
{
description = "High-performance computing projects";
inputs = {
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:nixos/nixpkgs?ref=refs/heads/master";
nixpkgs-asciidoc.url = "github:zebreus/nixpkgs?ref=f1a3be7a1160cc4810c0274ab76f0fac813eb4d6";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
nixpkgs-asciidoc,
fenix,
}:
flake-utils.lib.eachDefaultSystem (
system:
with nixpkgs.legacyPackages.${system};
let
pkgs-with-asciidoc = import nixpkgs-asciidoc { inherit system; };
pkgs-fenix = fenix.packages.${system};
in
rec {
name = "high-performance-computing";
packages.default = llvmPackages_16.stdenv.mkDerivation {
name = name;
src = ./.;
buildInputs = [
llvmPackages_16.openmp
gcc12
clang_16
openmpi
gnumake
zlib
sshfs
clang-tools_16
lldb
nil
(pkgs-fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
pkgs-fenix.rust-analyzer
python3
gnumake
cmake
protobuf
];
};
}
);
}