nixpkgs/pkgs/applications/graphics/nomacs/default.nix

67 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv
2019-08-30 01:46:27 +02:00
, mkDerivation
, fetchFromGitHub
, cmake
, pkgconfig
, qtbase
, qttools
, qtsvg
, exiv2
, opencv
, libraw
, libtiff
, quazip
}:
2019-09-01 15:33:32 +02:00
mkDerivation rec {
pname = "nomacs";
version = "3.12";
src = fetchFromGitHub {
owner = "nomacs";
repo = "nomacs";
2017-04-03 11:04:04 +02:00
rev = version;
sha256 = "12582i5v85da7vwjxj8grj99hxg34ij5cn3b1578wspdfw1xfy1i";
};
2019-06-27 07:51:23 +02:00
patches = [
./nomacs-iostream.patch
];
enableParallelBuilding = true;
setSourceRoot = ''
sourceRoot=$(echo */ImageLounge)
'';
nativeBuildInputs = [cmake
2019-08-30 01:46:27 +02:00
pkgconfig];
buildInputs = [qtbase
qttools
qtsvg
exiv2
opencv
libraw
libtiff
2019-08-30 01:46:27 +02:00
quazip];
cmakeFlags = ["-DENABLE_OPENCV=ON"
"-DENABLE_RAW=ON"
"-DENABLE_TIFF=ON"
"-DENABLE_QUAZIP=ON"
2019-08-30 01:47:38 +02:00
"-DENABLE_TRANSLATIONS=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;
};
}