Add build derivation

This commit is contained in:
2025-10-10 20:18:37 -05:00
parent 126eba308b
commit bf682e0756

View File

@@ -32,6 +32,32 @@
opencv-custom 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/
'';
};
} }
); );
} }