1 { lib, stdenv, fetchFromGitHub
2 , cmake, wrapGAppsHook3
3 , libX11, libzip, glfw, libpng, xorg, zenity
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 fetchSubmodules = true;
15 hash = "sha256-bgum8UIv0hTcIacjQsL7nc/2AbhjW5Zhq+LFkIWmDu8=";
18 nativeBuildInputs = [ cmake wrapGAppsHook3 ];
19 buildInputs = [ libX11 libzip glfw libpng ]
20 ++ (with xorg; [ libXrandr libXinerama libXcursor libXi libXxf86vm libXext ]);
22 dontWrapGApps = true; # We also need zenity (see below)
25 "-DTEV_DEPLOY=1" # Only relevant not to append "dev" to the version
29 wrapProgram $out/bin/tev \
30 "''${gappsWrapperArgs[@]}" \
31 --prefix PATH ":" "${zenity}/bin"
34 env.CXXFLAGS = "-include cstdint";
37 description = "High dynamic range (HDR) image comparison tool";
40 A high dynamic range (HDR) image comparison tool for graphics people. tev
41 allows viewing images through various tonemapping operators and inspecting
42 the values of individual pixels. Often, it is important to find exact
43 differences between pairs of images. For this purpose, tev allows rapidly
44 switching between opened images and visualizing various error metrics (L1,
45 L2, and relative versions thereof). To avoid clutter, opened images and
46 their layers can be filtered by keywords.
47 While the predominantly supported file format is OpenEXR certain other
48 types of images can also be loaded.
50 inherit (src.meta) homepage;
51 changelog = "https://github.com/Tom94/tev/releases/tag/v${version}";
52 license = licenses.bsd3;
53 platforms = platforms.unix;
54 broken = stdenv.hostPlatform.isDarwin; # needs apple frameworks + SDK fix? see #205247