Skip to content

Commit 2484da9

Browse files
committed
video-compare: init at 20250223
1 parent 12a58ef commit 2484da9

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
SDL2,
6+
SDL2_ttf,
7+
ffmpeg,
8+
}:
9+
10+
stdenv.mkDerivation rec {
11+
pname = "video-compare";
12+
version = "20250223";
13+
14+
src = fetchFromGitHub {
15+
owner = "pixop";
16+
repo = "video-compare";
17+
tag = version;
18+
hash = "sha256-h74TWXPcbIjfejGfHnjKZqKzpV0DIkC5llSD1jmiDDY=";
19+
};
20+
21+
postPatch = ''
22+
# Fix build on Darwin by using $CXX set by setup-hook
23+
substituteInPlace makefile \
24+
--replace-fail 'CXX = g++' ""
25+
'';
26+
27+
buildInputs = [
28+
SDL2
29+
SDL2_ttf
30+
ffmpeg
31+
];
32+
33+
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2}/include/SDL2";
34+
35+
installPhase = ''
36+
runHook preInstall
37+
38+
install -Dt $out/bin video-compare
39+
40+
runHook postInstall
41+
'';
42+
43+
enableParallelBuilding = true;
44+
45+
meta = {
46+
homepage = "https://github.com/pixop/video-compare";
47+
description = "Split screen video comparison tool";
48+
maintainers = with lib.maintainers; [ orivej ];
49+
license = lib.licenses.gpl2Only;
50+
mainProgram = "video-compare";
51+
platforms = lib.platforms.unix;
52+
};
53+
}

0 commit comments

Comments
 (0)