Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
SDL2,
|
|
SDL2_ttf,
|
|
ffmpeg,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "video-compare";
|
|
version = "20250928";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pixop";
|
|
repo = "video-compare";
|
|
tag = version;
|
|
hash = "sha256-md+h39tMbd07pHZzQ1eae5QCkqYErMoD6oEYov9lLBU=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|