File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
pkgs/by-name/vi/video-compare Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments