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
|
|
|
|
, cmake
|
|
|
|
, pkgconfig
|
|
|
|
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtsvg
|
|
|
|
|
|
|
|
, exiv2
|
|
|
|
, opencv
|
|
|
|
, libraw
|
|
|
|
, libtiff
|
|
|
|
, quazip
|
|
|
|
}:
|
|
|
|
|
2019-09-01 14:33:32 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nomacs";
|
2019-06-01 14:02:59 +01:00
|
|
|
version = "3.12";
|
|
|
|
|
2017-04-03 09:28:34 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nomacs";
|
|
|
|
repo = "nomacs";
|
2017-04-03 10:04:04 +01:00
|
|
|
rev = version;
|
2019-06-01 14:02:59 +01:00
|
|
|
sha256 = "12582i5v85da7vwjxj8grj99hxg34ij5cn3b1578wspdfw1xfy1i";
|
2017-04-03 09:28:34 +01:00
|
|
|
};
|
|
|
|
|
2019-06-27 06:51:23 +01:00
|
|
|
patches = [
|
|
|
|
./nomacs-iostream.patch
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
opencv
|
|
|
|
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; {
|
|
|
|
homepage = https://nomacs.org;
|
|
|
|
description = "Qt-based image viewer";
|
|
|
|
maintainers = [maintainers.ahmedtd];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
repositories.git = https://github.com/nomacs/nomacs.git;
|
|
|
|
inherit (qtbase.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|