65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkgconfig
|
|
, wrapGAppsHook
|
|
, gsettings-desktop-schemas
|
|
|
|
, qtbase
|
|
, qttools
|
|
, qtsvg
|
|
|
|
, exiv2
|
|
, opencv
|
|
, libraw
|
|
, libtiff
|
|
, quazip
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "3.10.2";
|
|
src = fetchFromGitHub {
|
|
owner = "nomacs";
|
|
repo = "nomacs";
|
|
rev = version;
|
|
sha256 = "0v2gsdc8caswf2b5aa023d8kil1fqf4r9mlg15180h3c92f8jzvh";
|
|
};
|
|
|
|
name = "nomacs-${version}";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
setSourceRoot = ''
|
|
sourceRoot=$(echo */ImageLounge)
|
|
'';
|
|
|
|
nativeBuildInputs = [cmake
|
|
pkgconfig
|
|
wrapGAppsHook];
|
|
|
|
buildInputs = [qtbase
|
|
qttools
|
|
qtsvg
|
|
exiv2
|
|
opencv
|
|
libraw
|
|
libtiff
|
|
quazip
|
|
gsettings-desktop-schemas];
|
|
|
|
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;
|
|
};
|
|
}
|