add Nix flake
This commit is contained in:
37
flake.nix
Normal file
37
flake.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
description = "video-streaming-poc devShell";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in with pkgs;
|
||||
let
|
||||
opencv-custom = pkgs.opencv.override {
|
||||
enableGtk3 = true;
|
||||
#enableCuda = true;
|
||||
enablePython = true;
|
||||
};
|
||||
in {
|
||||
devShells.default = mkShell rec {
|
||||
buildInputs = [
|
||||
# Meson
|
||||
meson
|
||||
pkg-config
|
||||
ninja
|
||||
|
||||
# Boost
|
||||
boost
|
||||
|
||||
# OpenCV
|
||||
opencv-custom
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user