2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-08-29 23:46:27 +00:00
|
|
|
, mkDerivation
|
2017-04-03 08:28:34 +00:00
|
|
|
, fetchFromGitHub
|
2019-11-24 23:14:51 +00:00
|
|
|
, fetchpatch
|
2017-04-03 08:28:34 +00:00
|
|
|
, cmake
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2017-04-03 08:28:34 +00:00
|
|
|
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtsvg
|
|
|
|
|
|
|
|
, exiv2
|
2019-11-24 23:14:51 +00:00
|
|
|
, opencv4
|
2017-04-03 08:28:34 +00:00
|
|
|
, libraw
|
|
|
|
, libtiff
|
|
|
|
, quazip
|
|
|
|
}:
|
|
|
|
|
2019-09-01 13:33:32 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "nomacs";
|
2020-08-26 18:34:14 +00:00
|
|
|
version = "3.17.2206";
|
2019-06-01 13:02:59 +00:00
|
|
|
|
2017-04-03 08:28:34 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nomacs";
|
|
|
|
repo = "nomacs";
|
2017-04-03 09:04:04 +00:00
|
|
|
rev = version;
|
2020-08-26 18:34:14 +00:00
|
|
|
sha256 = "1bq7bv4p7w67172y893lvpk90d6fgdpnylynbj2kn8m2hs6khya4";
|
2017-04-03 08:28:34 +00:00
|
|
|
};
|
|
|
|
|
2021-05-02 00:31:45 +00:00
|
|
|
patches = [
|
|
|
|
# Add support for Quazip 1.x.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/nomacs/nomacs/pull/576.patch";
|
|
|
|
sha256 = "11ryjvd9jbb0cqagai4a6980jfq8lrcbyw2d7z9yld1f42w9kbxm";
|
|
|
|
stripLen = 1;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-11-02 12:54:20 +00:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */ImageLounge)
|
|
|
|
'';
|
2017-04-03 08:28:34 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [cmake
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config];
|
2017-04-03 08:28:34 +00:00
|
|
|
|
|
|
|
buildInputs = [qtbase
|
|
|
|
qttools
|
|
|
|
qtsvg
|
|
|
|
exiv2
|
2019-11-24 23:14:51 +00:00
|
|
|
opencv4
|
2017-04-03 08:28:34 +00:00
|
|
|
libraw
|
|
|
|
libtiff
|
2019-08-29 23:46:27 +00:00
|
|
|
quazip];
|
2017-04-03 08:28:34 +00:00
|
|
|
|
|
|
|
cmakeFlags = ["-DENABLE_OPENCV=ON"
|
|
|
|
"-DENABLE_RAW=ON"
|
|
|
|
"-DENABLE_TIFF=ON"
|
|
|
|
"-DENABLE_QUAZIP=ON"
|
2019-08-29 23:47:38 +00:00
|
|
|
"-DENABLE_TRANSLATIONS=ON"
|
2017-04-03 08:28:34 +00:00
|
|
|
"-DUSE_SYSTEM_QUAZIP=ON"];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://nomacs.org";
|
2017-04-03 08:28:34 +00:00
|
|
|
description = "Qt-based image viewer";
|
2021-01-15 13:21:58 +00:00
|
|
|
maintainers = with lib.maintainers; [ mindavi ];
|
2017-04-03 08:28:34 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-01 01:11:51 +00:00
|
|
|
repositories.git = "https://github.com/nomacs/nomacs.git";
|
2017-04-03 08:28:34 +00:00
|
|
|
inherit (qtbase.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|