video-compare: init at 20250223 (#341767)
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
SDL2,
|
||||
SDL2_ttf,
|
||||
ffmpeg,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "video-compare";
|
||||
version = "20250223";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pixop";
|
||||
repo = "video-compare";
|
||||
tag = version;
|
||||
hash = "sha256-h74TWXPcbIjfejGfHnjKZqKzpV0DIkC5llSD1jmiDDY=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Fix build on Darwin by using $CXX set by setup-hook
|
||||
substituteInPlace makefile \
|
||||
--replace-fail 'CXX = g++' ""
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
SDL2
|
||||
SDL2_ttf
|
||||
ffmpeg
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2}/include/SDL2";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dt $out/bin video-compare
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/pixop/video-compare";
|
||||
description = "Split screen video comparison tool";
|
||||
maintainers = with lib.maintainers; [ orivej ];
|
||||
license = lib.licenses.gpl2Only;
|
||||
mainProgram = "video-compare";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user