1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/applications/graphics/nomacs/default.nix
Nikolay Amiantov 25d1db1adf nomacs: 3.10.2 -> 3.12
Fix build with quazip.
2019-06-01 17:31:50 +03:00

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 {
name = "nomacs-${version}";
version = "3.12";
src = fetchFromGitHub {
owner = "nomacs";
repo = "nomacs";
rev = version;
sha256 = "12582i5v85da7vwjxj8grj99hxg34ij5cn3b1578wspdfw1xfy1i";
};
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;
};
}