2024-10-02 17:52:41 -07:00
|
|
|
{
|
|
|
|
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 {
|
2024-10-14 18:11:54 -07:00
|
|
|
packages = with pkgs; [
|
|
|
|
valgrind
|
|
|
|
bat
|
|
|
|
];
|
2024-10-02 17:52:41 -07:00
|
|
|
buildInputs = with pkgs; [
|
|
|
|
zig_exe
|
|
|
|
glib
|
|
|
|
glib.dev
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gstreamer.dev
|
|
|
|
gst_all_1.gst-plugins-base
|
2024-10-18 22:38:19 -07:00
|
|
|
gst_all_1.gst-plugins-base.dev
|
2024-10-02 17:52:41 -07:00
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
];
|
|
|
|
|
|
|
|
GST_DEV_PATH = pkgs.gst_all_1.gstreamer.dev;
|
2024-10-19 19:26:02 -07:00
|
|
|
GST_PLUGINS_BASE_PATH = pkgs.gst_all_1.gst-plugins-base;
|
|
|
|
GST_PLUGINS_BASE_DEV_PATH = pkgs.gst_all_1.gst-plugins-base.dev;
|
2024-10-02 17:52:41 -07:00
|
|
|
GLIB_DEV_PATH = pkgs.glib.dev;
|
|
|
|
GLIB_PATH = pkgs.glib.out;
|
2024-10-11 18:11:23 -07:00
|
|
|
|
2024-10-23 20:10:37 -07:00
|
|
|
HAILORT_LOGGER_PATH = "./logs";
|
|
|
|
HAILORT_CONSOLE_LOGGER_LEVEL = "info";
|
|
|
|
HAILO_MONITOR = 1;
|
2024-10-02 17:52:41 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|