depot/third_party/nixpkgs/pkgs/applications/graphics/nomacs/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

63 lines
1.3 KiB
Nix

{ stdenv
, mkDerivation
, fetchFromGitHub
, fetchpatch
, cmake
, pkgconfig
, qtbase
, qttools
, qtsvg
, exiv2
, opencv4
, libraw
, libtiff
, quazip
}:
mkDerivation rec {
pname = "nomacs";
version = "3.17.2045";
src = fetchFromGitHub {
owner = "nomacs";
repo = "nomacs";
rev = version;
sha256 = "1lchdmmw2sg0xbpcnsk3sxh120xpcv1lh2khf4h5zzdlccbklq7l";
};
enableParallelBuilding = true;
setSourceRoot = ''
sourceRoot=$(echo */ImageLounge)
'';
nativeBuildInputs = [cmake
pkgconfig];
buildInputs = [qtbase
qttools
qtsvg
exiv2
opencv4
libraw
libtiff
quazip];
cmakeFlags = ["-DENABLE_OPENCV=ON"
"-DENABLE_RAW=ON"
"-DENABLE_TIFF=ON"
"-DENABLE_QUAZIP=ON"
"-DENABLE_TRANSLATIONS=ON"
"-DUSE_SYSTEM_QUAZIP=ON"];
meta = with stdenv.lib; {
homepage = "https://nomacs.org";
description = "Qt-based image viewer";
maintainers = with stdenv.lib.maintainers; [ mindavi ];
license = licenses.gpl3Plus;
repositories.git = "https://github.com/nomacs/nomacs.git";
inherit (qtbase.meta) platforms;
};
}