From bf682e075647c320d574fb781ba2887f77ee6ea8 Mon Sep 17 00:00:00 2001 From: Dustin Thomas Date: Fri, 10 Oct 2025 20:18:37 -0500 Subject: [PATCH] Add build derivation --- flake.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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/ + ''; + }; } ); }