54 lines
1.7 KiB
Nix
54 lines
1.7 KiB
Nix
|
{ stdenv, fetchFromGitHub
|
||
|
, cmake, wrapGAppsHook
|
||
|
, libX11, xorg, libzip, glfw, gnome3
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "tev";
|
||
|
version = "1.13";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "Tom94";
|
||
|
repo = pname;
|
||
|
rev = "v${version}";
|
||
|
fetchSubmodules = true;
|
||
|
sha256 = "0c8md6yv1q449aszs05xfby6a2aiw8pac7x0zs169i5mpqrrbfa9";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [ cmake wrapGAppsHook ];
|
||
|
buildInputs = [ libX11 libzip glfw ]
|
||
|
++ (with xorg; [ libXrandr libXinerama libXcursor libXi libXxf86vm ]);
|
||
|
|
||
|
dontWrapGApps = true; # We also need zenity (see below)
|
||
|
|
||
|
postPatch = ''
|
||
|
substituteInPlace CMakeLists.txt \
|
||
|
--replace "/usr/" "''${out}/"
|
||
|
'';
|
||
|
|
||
|
postInstall = ''
|
||
|
wrapProgram $out/bin/tev \
|
||
|
"''${gappsWrapperArgs[@]}" \
|
||
|
--prefix PATH ":" "${gnome3.zenity}/bin"
|
||
|
'';
|
||
|
|
||
|
meta = with stdenv.lib; {
|
||
|
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;
|
||
|
license = licenses.bsd3;
|
||
|
platforms = platforms.unix;
|
||
|
maintainers = with maintainers; [ primeos ];
|
||
|
};
|
||
|
}
|