djview: unbreak for darwin & move to pkgs/by-name (#409807)

This commit is contained in:
Aleksana
2025-06-11 19:27:08 +08:00
committed by GitHub
2 changed files with 15 additions and 5 deletions
@@ -52,16 +52,27 @@ stdenv.mkDerivation rec {
"--with-x"
"--with-tiff"
"--disable-nsdejavu" # 2023-11-14: modern browsers have dropped support for NPAPI
] ++ lib.optional stdenv.hostPlatform.isDarwin "--enable-mac";
];
postInstall =
let
Applications = "$out/Applications";
in
lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p ${Applications}
cp -a src/djview.app -t ${Applications}
'';
meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
description = "Portable DjVu viewer (Qt5) and browser (nsdejavu) plugin";
description = "Portable DjVu viewer (Qt5)";
mainProgram = "djview";
homepage = "https://djvu.sourceforge.net/djview4.html";
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ Anton-Latukha ];
maintainers = with maintainers; [
Anton-Latukha
bryango
];
longDescription = ''
The portable DjVu viewer (Qt5) and browser (nsdejavu) plugin.
-1
View File
@@ -12121,7 +12121,6 @@ with pkgs;
djv = callPackage ../by-name/dj/djv/package.nix { openexr = openexr_2; };
djview = callPackage ../applications/graphics/djview { };
djview4 = djview;
dmenu = callPackage ../applications/misc/dmenu { };