diff --git a/flake.nix b/flake.nix index eb06e63..b83f04c 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,32 @@ opencv-custom ]; }; + packages.default = pkgs.stdenv.mkDerivation { + name = "video-streaming-poc"; + src = ./.; + + nativeBuildInputs = with pkgs; [ + meson + ninja + pkg-config + ]; + + buildInputs = with pkgs; [ + boost + opencv-custom + ]; + + buildPhase = '' + meson setup --wipe build + meson compile + ''; + + installPhase = '' + mkdir -p $out/bin + cp build/client $out/bin/ + cp build/server $out/bin/ + ''; + }; } ); }