diff options
author | Aleksana <me@aleksana.moe> | 2024-06-18 02:30:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-18 02:30:09 +0800 |
commit | a81321e73b0a1bfe24ad8404599a03db17976565 (patch) | |
tree | f5398ba4d6cce977371f4f3c54afaf6ef637812f /pkgs/applications/graphics | |
parent | cb0dbbfa3b5b1f7c2249d2b8ed688ea4bb06825c (diff) | |
parent | 0fb9dc1375b8acaccb4f471cdc1b260ef7bf4bd1 (diff) |
Merge pull request #267944 from 6t8k/djview_4.10.6-4.12
djview: 4.10.6 -> 4.12
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r-- | pkgs/applications/graphics/djview/default.nix | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/pkgs/applications/graphics/djview/default.nix b/pkgs/applications/graphics/djview/default.nix index 115233dd2641c..3678b9760c812 100644 --- a/pkgs/applications/graphics/djview/default.nix +++ b/pkgs/applications/graphics/djview/default.nix @@ -1,6 +1,9 @@ { lib, stdenv , mkDerivation , fetchurl +, autoconf +, automake +, libtool , pkg-config , djvulibre , qtbase @@ -12,14 +15,19 @@ mkDerivation rec { pname = "djview"; - version = "4.10.6"; + version = "4.12"; + + outputs = [ "out" "man" ]; src = fetchurl { url = "mirror://sourceforge/djvu/${pname}-${version}.tar.gz"; - sha256 = "08bwv8ppdzhryfcnifgzgdilb12jcnivl4ig6hd44f12d76z6il4"; + hash = "sha256-VnPGqLfhlbkaFyCyQJGRW4FF3jSHnbEVi8k2sQDq8+M="; }; nativeBuildInputs = [ + autoconf + automake + libtool pkg-config qttools ]; @@ -31,24 +39,24 @@ mkDerivation rec { libtiff ] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.AGL; + preConfigure = '' + NOCONFIGURE=1 ./autogen.sh + ''; + configureFlags = [ "--disable-silent-rules" "--disable-dependency-tracking" "--with-x" "--with-tiff" - # NOTE: 2019-09-19: experimental "--enable-npdjvu" fails + "--disable-nsdejavu" # 2023-11-14: modern browsers have dropped support for NPAPI ] ++ lib.optional stdenv.isDarwin "--enable-mac"; - passthru = { - mozillaPlugin = "/lib/mozilla/plugins"; - }; - meta = with lib; { broken = stdenv.isDarwin; description = "Portable DjVu viewer (Qt5) and browser (nsdejavu) plugin"; mainProgram = "djview"; homepage = "https://djvu.sourceforge.net/djview4.html"; - license = licenses.gpl2; + license = licenses.gpl2Plus; platforms = platforms.unix; maintainers = with maintainers; [ Anton-Latukha ]; longDescription = '' |