32 lines
714 B
Nix
32 lines
714 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
zig.url = "github:mitchellh/zig-overlay";
|
|
flake-utils = { url = "github:numtide/flake-utils"; };
|
|
};
|
|
|
|
outputs = { self, nixpkgs, zig, flake-utils, ... }:
|
|
flake-utils.lib.eachDefaultSystem(system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
zig_exe = zig.packages.${system}.master;
|
|
in
|
|
{
|
|
devShell = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
valgrind
|
|
bat
|
|
];
|
|
buildInputs = with pkgs; [
|
|
zig_exe
|
|
];
|
|
|
|
HAILORT_LOGGER_PATH = "./logs";
|
|
HAILORT_CONSOLE_LOGGER_LEVEL = "info";
|
|
HAILO_MONITOR = 1;
|
|
};
|
|
}
|
|
);
|
|
}
|