nixpkgs/pkgs/applications/graphics/nomacs/default.nix

64 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv
2019-08-30 00:46:27 +01:00
, mkDerivation
, fetchFromGitHub
, fetchpatch
, cmake
, pkgconfig
, qtbase
, qttools
, qtsvg
, exiv2
, opencv4
, libraw
, libtiff
, quazip
}:
2019-09-01 14:33:32 +01:00
mkDerivation rec {
pname = "nomacs";
2020-08-15 05:23:26 +01:00
version = "3.17.2045";
src = fetchFromGitHub {
owner = "nomacs";
repo = "nomacs";
2017-04-03 10:04:04 +01:00
rev = version;
2020-08-15 05:23:26 +01:00
sha256 = "1lchdmmw2sg0xbpcnsk3sxh120xpcv1lh2khf4h5zzdlccbklq7l";
};
enableParallelBuilding = true;
setSourceRoot = ''
sourceRoot=$(echo */ImageLounge)
'';
nativeBuildInputs = [cmake
2019-08-30 00:46:27 +01:00
pkgconfig];
buildInputs = [qtbase
qttools
qtsvg
exiv2
opencv4
libraw
libtiff
2019-08-30 00:46:27 +01:00
quazip];
cmakeFlags = ["-DENABLE_OPENCV=ON"
"-DENABLE_RAW=ON"
"-DENABLE_TIFF=ON"
"-DENABLE_QUAZIP=ON"
2019-08-30 00:47:38 +01:00
"-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;
};
}