2017-04-03 10:28:34 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, makeWrapper
|
|
|
|
, pkgconfig
|
|
|
|
, wrapGAppsHook
|
2018-02-25 03:23:58 +01:00
|
|
|
, gsettings-desktop-schemas
|
2017-04-03 10:28:34 +02:00
|
|
|
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtsvg
|
|
|
|
|
|
|
|
, exiv2
|
|
|
|
, opencv
|
|
|
|
, libraw
|
|
|
|
, libtiff
|
|
|
|
, quazip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-04-08 00:09:35 +02:00
|
|
|
version = "3.8.1";
|
2017-04-03 10:28:34 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nomacs";
|
|
|
|
repo = "nomacs";
|
2017-04-03 11:04:04 +02:00
|
|
|
rev = version;
|
2018-04-08 00:09:35 +02:00
|
|
|
sha256 = "1irms980d7acdqrfn8isw55vgc4d9n26ff86887vk7xfvxs0ayla";
|
2017-04-03 10:28:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
name = "nomacs-${version}";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-11-02 13:54:20 +01:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */ImageLounge)
|
|
|
|
'';
|
2017-04-03 10:28:34 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [cmake
|
|
|
|
pkgconfig
|
|
|
|
wrapGAppsHook];
|
|
|
|
|
|
|
|
buildInputs = [qtbase
|
|
|
|
qttools
|
|
|
|
qtsvg
|
|
|
|
exiv2
|
|
|
|
opencv
|
|
|
|
libraw
|
|
|
|
libtiff
|
|
|
|
quazip
|
2018-02-25 03:23:58 +01:00
|
|
|
gsettings-desktop-schemas];
|
2017-04-03 10:28:34 +02:00
|
|
|
|
|
|
|
cmakeFlags = ["-DENABLE_OPENCV=ON"
|
|
|
|
"-DENABLE_RAW=ON"
|
|
|
|
"-DENABLE_TIFF=ON"
|
|
|
|
"-DENABLE_QUAZIP=ON"
|
|
|
|
"-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;
|
|
|
|
};
|
|
|
|
}
|