nixpkgs-suyu/pkgs/applications/graphics/djview/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

30 lines
779 B
Nix

{ stdenv, fetchurl, pkgconfig
, djvulibre, qt4, xorg, libtiff
, darwin }:
stdenv.mkDerivation rec {
pname = "djview";
version = "4.10.6";
src = fetchurl {
url = "mirror://sourceforge/djvu/${pname}-${version}.tar.gz";
sha256 = "08bwv8ppdzhryfcnifgzgdilb12jcnivl4ig6hd44f12d76z6il4";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ djvulibre qt4 xorg.libXt libtiff ]
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AGL ];
passthru = {
mozillaPlugin = "/lib/mozilla/plugins";
};
meta = with stdenv.lib; {
homepage = http://djvu.sourceforge.net/djview4.html;
description = "A portable DjVu viewer and browser plugin";
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = [ ];
};
}