-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
45 lines (44 loc) · 1.29 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
{
description = "C++ Development Shell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
zkllvm_with_mlir = (pkgs.callPackage ./nix/zkllvm { });
python-packages = ps: with ps; [ numpy onnx ];
in
with pkgs;
{
devShells.default = mkShell.override { stdenv = clangStdenv; }
{
buildInputs = [
(pkgs.python3.withPackages python-packages)
pkgs.clang-tools
pkgs.cmake
pkgs.ninja
pkgs.git
pkgs.ripgrep
pkgs.protobuf3_20
pkgs.zlib
pkgs.zstd
pkgs.libxml2
pkgs.icu70
pkgs.just
zkllvm_with_mlir
# (pkgs.callPackage ./nix/zkllvm/default.nix { inherit pkgs; })
(pkgs.boost183.override { enableShared = false; })
];
shellHook = ''
export MLIR_DIR=${zkllvm_with_mlir}/lib/cmake/mlir
echo Using MLIR in $MLIR_DIR
'';
};
}
);
}