mirror of
https://github.com/tkmxqrdxddd/davinci-video-converter
synced 2026-03-29 15:25:33 +02:00
feat: add devcontainer/nix support and refactor into modules
- Add .devcontainer/devcontainer.json for Podman development - Add shell.nix for Nix users - Refactor monolithic main.cpp into modular components: - parser: argument parsing - validator: configuration validation - converter: ffmpeg command building/execution - Update Makefile with proper dependencies and test target - Simplify build.sh to use make - Update README with development environment docs
This commit is contained in:
22
shell.nix
Normal file
22
shell.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.mkShell {
|
||||
name = "davinci-video-converter";
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
gcc13
|
||||
make
|
||||
ffmpeg
|
||||
pkg-config
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export CXX=g++
|
||||
export CC=gcc
|
||||
echo "DaVinci Video Converter development environment loaded"
|
||||
echo "Available commands:"
|
||||
echo " make - Build the project"
|
||||
echo " make clean - Clean build artifacts"
|
||||
echo " make test - Run tests"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user