2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2019-10-27 20:09:59 +00:00
|
|
|
, cmake, wrapGAppsHook
|
2021-05-07 21:18:14 +00:00
|
|
|
, libX11, libzip, glfw, libpng, xorg, gnome
|
2019-10-27 20:09:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tev";
|
2022-02-05 17:23:16 +00:00
|
|
|
version = "1.23";
|
2019-10-27 20:09:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Tom94";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2022-02-05 17:23:16 +00:00
|
|
|
sha256 = "sha256-NtnnZV/+8aUm8BkUz8Xm3aeSbOI2gNUPNfvYlwUl01Y=";
|
2019-10-27 20:09:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake wrapGAppsHook ];
|
2020-02-06 21:44:50 +00:00
|
|
|
buildInputs = [ libX11 libzip glfw libpng ]
|
2021-12-04 14:06:08 +00:00
|
|
|
++ (with xorg; [ libXrandr libXinerama libXcursor libXi libXxf86vm libXext ]);
|
2019-10-27 20:09:59 +00:00
|
|
|
|
|
|
|
dontWrapGApps = true; # We also need zenity (see below)
|
|
|
|
|
2021-02-16 13:46:25 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DTEV_DEPLOY=1" # Only relevant not to append "dev" to the version
|
|
|
|
];
|
|
|
|
|
2019-10-27 20:09:59 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/tev \
|
|
|
|
"''${gappsWrapperArgs[@]}" \
|
2021-05-07 21:18:14 +00:00
|
|
|
--prefix PATH ":" "${gnome.zenity}/bin"
|
2019-10-27 20:09:59 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-27 20:09:59 +00:00
|
|
|
description = "A high dynamic range (HDR) image comparison tool";
|
|
|
|
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 15:07:42 +00:00
|
|
|
changelog = "https://github.com/Tom94/tev/releases/tag/v${version}";
|
2019-10-27 20:09:59 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2022-01-27 16:06:22 +00:00
|
|
|
badPlatforms = [ "aarch64-linux" ]; # fails on Hydra since forever
|
2021-12-04 14:09:04 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-10-27 20:09:59 +00:00
|
|
|
};
|
|
|
|
}
|