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

71 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
2019-08-29 23:46:27 +00:00
, mkDerivation
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, qtbase
, qttools
, qtsvg
, exiv2
, opencv4
, libraw
, libtiff
, quazip
}:
2019-09-01 13:33:32 +00:00
mkDerivation rec {
pname = "nomacs";
2020-08-26 18:34:14 +00:00
version = "3.17.2206";
src = fetchFromGitHub {
owner = "nomacs";
repo = "nomacs";
2017-04-03 09:04:04 +00:00
rev = version;
2020-08-26 18:34:14 +00:00
sha256 = "1bq7bv4p7w67172y893lvpk90d6fgdpnylynbj2kn8m2hs6khya4";
};
2021-05-02 00:31:45 +00:00
patches = [
# Add support for Quazip 1.x.
(fetchpatch {
url = "https://github.com/nomacs/nomacs/pull/576.patch";
sha256 = "11ryjvd9jbb0cqagai4a6980jfq8lrcbyw2d7z9yld1f42w9kbxm";
stripLen = 1;
})
];
setSourceRoot = ''
sourceRoot=$(echo */ImageLounge)
'';
nativeBuildInputs = [cmake
pkg-config];
buildInputs = [qtbase
qttools
qtsvg
exiv2
opencv4
libraw
libtiff
2019-08-29 23:46:27 +00:00
quazip];
cmakeFlags = ["-DENABLE_OPENCV=ON"
"-DENABLE_RAW=ON"
"-DENABLE_TIFF=ON"
"-DENABLE_QUAZIP=ON"
2019-08-29 23:47:38 +00:00
"-DENABLE_TRANSLATIONS=ON"
"-DUSE_SYSTEM_QUAZIP=ON"];
meta = with lib; {
homepage = "https://nomacs.org";
description = "Qt-based image viewer";
2021-01-15 13:21:58 +00:00
maintainers = with lib.maintainers; [ mindavi ];
license = licenses.gpl3Plus;
repositories.git = "https://github.com/nomacs/nomacs.git";
inherit (qtbase.meta) platforms;
};
}