2017-04-03 09:28:34 +01:00
|
|
|
{ stdenv
|
2019-08-30 00:46:27 +01:00
|
|
|
, mkDerivation
|
2017-04-03 09:28:34 +01:00
|
|
|
, fetchFromGitHub
|
2019-11-24 23:14:51 +00:00
|
|
|
, fetchpatch
|
2017-04-03 09:28:34 +01:00
|
|
|
, cmake
|
|
|
|
, pkgconfig
|
|
|
|
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtsvg
|
|
|
|
|
|
|
|
, exiv2
|
2019-11-24 23:14:51 +00:00
|
|
|
, opencv4
|
2017-04-03 09:28:34 +01:00
|
|
|
, libraw
|
|
|
|
, libtiff
|
|
|
|
, quazip
|
|
|
|
}:
|
|
|
|
|
2019-09-01 14:33:32 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nomacs";
|
2020-08-15 05:23:26 +01:00
|
|
|
version = "3.17.2045";
|
2019-06-01 14:02:59 +01:00
|
|
|
|
2017-04-03 09:28:34 +01:00
|
|
|
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";
|
2017-04-03 09:28:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-11-02 12:54:20 +00:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */ImageLounge)
|
|
|
|
'';
|
2017-04-03 09:28:34 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [cmake
|
2019-08-30 00:46:27 +01:00
|
|
|
pkgconfig];
|
2017-04-03 09:28:34 +01:00
|
|
|
|
|
|
|
buildInputs = [qtbase
|
|
|
|
qttools
|
|
|
|
qtsvg
|
|
|
|
exiv2
|
2019-11-24 23:14:51 +00:00
|
|
|
opencv4
|
2017-04-03 09:28:34 +01:00
|
|
|
libraw
|
|
|
|
libtiff
|
2019-08-30 00:46:27 +01:00
|
|
|
quazip];
|
2017-04-03 09:28:34 +01:00
|
|
|
|
|
|
|
cmakeFlags = ["-DENABLE_OPENCV=ON"
|
|
|
|
"-DENABLE_RAW=ON"
|
|
|
|
"-DENABLE_TIFF=ON"
|
|
|
|
"-DENABLE_QUAZIP=ON"
|
2019-08-30 00:47:38 +01:00
|
|
|
"-DENABLE_TRANSLATIONS=ON"
|
2017-04-03 09:28:34 +01:00
|
|
|
"-DUSE_SYSTEM_QUAZIP=ON"];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://nomacs.org";
|
2017-04-03 09:28:34 +01:00
|
|
|
description = "Qt-based image viewer";
|
2020-05-26 18:44:00 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ mindavi ];
|
2017-04-03 09:28:34 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-01 02:11:51 +01:00
|
|
|
repositories.git = "https://github.com/nomacs/nomacs.git";
|
2017-04-03 09:28:34 +01:00
|
|
|
inherit (qtbase.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|