jfbview: init at 0.6.0

+67
+67
pkgs/by-name/jf/jfbview/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + versionCheckHook, 6 + nix-update-script, 7 + freetype, 8 + harfbuzz, 9 + imlib2, 10 + libjpeg, 11 + ncurses, 12 + openjpeg, 13 + zlib, 14 + xorg, 15 + cmake, 16 + }: 17 + 18 + stdenv.mkDerivation (finalAttrs: { 19 + pname = "jfbview"; 20 + version = "0.6.0"; 21 + 22 + src = fetchFromGitHub { 23 + owner = "jichu4n"; 24 + repo = "jfbview"; 25 + tag = finalAttrs.version; 26 + fetchSubmodules = true; 27 + hash = "sha256-ASgKXk5iVqKsBc1uzakHs5ojUb6AptGm9LxNyFcDngc="; 28 + }; 29 + 30 + nativeBuildInputs = [ cmake ]; 31 + 32 + buildInputs = [ 33 + freetype 34 + harfbuzz 35 + imlib2 36 + libjpeg 37 + ncurses 38 + openjpeg 39 + xorg.libX11 40 + zlib 41 + ]; 42 + 43 + env.LDFLAGS = "-lImlib2"; 44 + 45 + cmakeFlags = [ 46 + (lib.cmakeBool "BUILD_TESTING" false) 47 + (lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release") 48 + (lib.cmakeFeature "CMAKE_INSTALL_PREFIX" "/") # relative to $out 49 + ]; 50 + 51 + makeFlags = [ "DESTDIR=${placeholder "out"}" ]; 52 + 53 + nativeInstallCheckInputs = [ versionCheckHook ]; 54 + doInstallCheck = true; 55 + 56 + passthru.updateScript = nix-update-script { }; 57 + 58 + meta = { 59 + description = "PDF and image viewer for the Linux framebuffer"; 60 + homepage = "https://github.com/jichu4n/jfbview"; 61 + changelog = "https://github.com/jichu4n/jfbview/releases/tag/${finalAttrs.src.tag}"; 62 + license = lib.licenses.asl20; 63 + maintainers = with lib.maintainers; [ ulysseszhan ]; 64 + platforms = lib.platforms.linux; 65 + mainProgram = "jfbview"; 66 + }; 67 + })