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
68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
freetype,
|
|
harfbuzz,
|
|
imlib2,
|
|
libjpeg,
|
|
ncurses,
|
|
openjpeg,
|
|
zlib,
|
|
xorg,
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "jfbview";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jichu4n";
|
|
repo = "jfbview";
|
|
tag = finalAttrs.version;
|
|
fetchSubmodules = true;
|
|
hash = "sha256-ASgKXk5iVqKsBc1uzakHs5ojUb6AptGm9LxNyFcDngc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
freetype
|
|
harfbuzz
|
|
imlib2
|
|
libjpeg
|
|
ncurses
|
|
openjpeg
|
|
xorg.libX11
|
|
zlib
|
|
];
|
|
|
|
env.LDFLAGS = "-lImlib2";
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_TESTING" false)
|
|
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release")
|
|
(lib.cmakeFeature "CMAKE_INSTALL_PREFIX" "/") # relative to $out
|
|
];
|
|
|
|
makeFlags = [ "DESTDIR=${placeholder "out"}" ];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "PDF and image viewer for the Linux framebuffer";
|
|
homepage = "https://github.com/jichu4n/jfbview";
|
|
changelog = "https://github.com/jichu4n/jfbview/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ ulysseszhan ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "jfbview";
|
|
};
|
|
})
|