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