2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2024-04-26 22:24:03 +02:00
|
|
|
, cmake, wrapGAppsHook3
|
2024-06-22 14:28:53 +02:00
|
|
|
, libX11, libzip, glfw, libpng, xorg, zenity
|
2019-10-27 21:09:59 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tev";
|
2024-04-19 04:42:29 +02:00
|
|
|
version = "1.27";
|
2019-10-27 21:09:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Tom94";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2024-07-14 12:59:26 +02:00
|
|
|
hash = "sha256-+qCRHP0AbYOQBAE4zK2cmWPHZGWjjxC3DZPNm8sgBzs=";
|
2019-10-27 21:09:59 +01:00
|
|
|
};
|
|
|
|
|
2024-04-26 22:24:03 +02:00
|
|
|
nativeBuildInputs = [ cmake wrapGAppsHook3 ];
|
2020-02-06 22:44:50 +01:00
|
|
|
buildInputs = [ libX11 libzip glfw libpng ]
|
2021-12-04 15:06:08 +01:00
|
|
|
++ (with xorg; [ libXrandr libXinerama libXcursor libXi libXxf86vm libXext ]);
|
2019-10-27 21:09:59 +01:00
|
|
|
|
|
|
|
dontWrapGApps = true; # We also need zenity (see below)
|
|
|
|
|
2021-02-16 14:46:25 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DTEV_DEPLOY=1" # Only relevant not to append "dev" to the version
|
|
|
|
];
|
|
|
|
|
2019-10-27 21:09:59 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/tev \
|
|
|
|
"''${gappsWrapperArgs[@]}" \
|
2024-06-22 14:28:53 +02:00
|
|
|
--prefix PATH ":" "${zenity}/bin"
|
2019-10-27 21:09:59 +01:00
|
|
|
'';
|
|
|
|
|
2024-01-28 17:40:47 +01:00
|
|
|
env.CXXFLAGS = "-include cstdint";
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-10-27 21:09:59 +01:00
|
|
|
description = "High dynamic range (HDR) image comparison tool";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "tev";
|
2019-10-27 21:09:59 +01:00
|
|
|
longDescription = ''
|
|
|
|
A high dynamic range (HDR) image comparison tool for graphics people. tev
|
|
|
|
allows viewing images through various tonemapping operators and inspecting
|
|
|
|
the values of individual pixels. Often, it is important to find exact
|
|
|
|
differences between pairs of images. For this purpose, tev allows rapidly
|
|
|
|
switching between opened images and visualizing various error metrics (L1,
|
|
|
|
L2, and relative versions thereof). To avoid clutter, opened images and
|
|
|
|
their layers can be filtered by keywords.
|
|
|
|
While the predominantly supported file format is OpenEXR certain other
|
|
|
|
types of images can also be loaded.
|
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
2020-03-10 16:07:42 +01:00
|
|
|
changelog = "https://github.com/Tom94/tev/releases/tag/v${version}";
|
2019-10-27 21:09:59 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2022-12-09 06:12:18 +01:00
|
|
|
broken = stdenv.isDarwin; # needs apple frameworks + SDK fix? see #205247
|
2024-07-28 16:44:11 +02:00
|
|
|
maintainers = [ ];
|
2019-10-27 21:09:59 +01:00
|
|
|
};
|
|
|
|
}
|