Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
92 lines
2.2 KiB
Nix
92 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cmake,
|
|
darwin,
|
|
dbus,
|
|
fetchFromGitHub,
|
|
lcms2,
|
|
libGL,
|
|
libffi,
|
|
libxkbcommon,
|
|
nasm,
|
|
perl,
|
|
pkg-config,
|
|
wayland,
|
|
wayland-protocols,
|
|
wayland-scanner,
|
|
xorg,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tev";
|
|
version = "2.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Tom94";
|
|
repo = "tev";
|
|
tag = "v${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-S4VE33wMima6GeGPmZOU6ub5V/ZWoVYqAIizh9BJHGo=";
|
|
};
|
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isLinux (
|
|
let
|
|
waylandLibPath = "${lib.getLib wayland}/lib";
|
|
in
|
|
''
|
|
substituteInPlace ./dependencies/nanogui/ext/glfw/src/wl_init.c \
|
|
--replace-fail "libwayland-client.so" "${waylandLibPath}/libwayland-client.so" \
|
|
--replace-fail "libwayland-cursor.so" "${waylandLibPath}/libwayland-cursor.so" \
|
|
--replace-fail "libwayland-egl.so" "${waylandLibPath}/libwayland-egl.so" \
|
|
--replace-fail "libxkbcommon.so" "${lib.getLib libxkbcommon}/lib/libxkbcommon.so"
|
|
''
|
|
);
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
nasm
|
|
perl
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
lcms2
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
dbus
|
|
libffi
|
|
libGL
|
|
libxkbcommon
|
|
wayland
|
|
wayland-protocols
|
|
wayland-scanner
|
|
xorg.libX11
|
|
xorg.libXcursor
|
|
xorg.libXi
|
|
xorg.libXinerama
|
|
xorg.libXrandr
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DTEV_DEPLOY=1"
|
|
];
|
|
|
|
meta = {
|
|
description = "High dynamic range (HDR) image viewer for people who care about colors";
|
|
mainProgram = "tev";
|
|
longDescription = ''
|
|
High dynamic range (HDR) image viewer for people who care about colors. It is
|
|
- Lightning fast: starts up instantly, loads hundreds of images in seconds.
|
|
- Accurate: understands color profiles and displays HDR.
|
|
- Versatile: supports many formats, histograms, pixel peeping, tonemaps, etc.
|
|
'';
|
|
changelog = "https://github.com/Tom94/tev/releases/tag/v${version}";
|
|
homepage = "https://github.com/Tom94/tev";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ tom94 ];
|
|
platforms = lib.platforms.unix;
|
|
broken = stdenv.hostPlatform.isDarwin; # needs apple frameworks + SDK fix? see #205247
|
|
};
|
|
}
|