-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathshell.nix
More file actions
38 lines (36 loc) · 719 Bytes
/
shell.nix
File metadata and controls
38 lines (36 loc) · 719 Bytes
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
with import <nixpkgs> {};
let
mach-nix = import (builtins.fetchGit {
url = "https://github.com/DavHau/mach-nix";
ref = "refs/tags/3.5.0";
}) {};
pyEnv = mach-nix.mkPython rec {
providers._default = "wheel,conda,nixpkgs,sdist";
requirements = builtins.readFile ./requirements.txt;
};
in
{ pkgs ? import <nixpkgs> {} }:
stdenv.mkDerivation {
name = "decoding";
src = ./.;
buildInputs = [
pyenv
gtest
gbenchmark
git
cmake
clang_17
clang-tools_17
llvmPackages_17.openmp
llvm_17
gcc
]++ (lib.optionals pkgs.stdenv.isLinux ([
flamegraph
gdb
linuxKernel.packages.linux_6_6.perf
pprof
valgrind
massif-visualizer
#TODO cudatoolkit
]));
}