mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 07:04:28 +00:00
642bd5fe92
Fixes a build issue introduced by a Qt5 upgrade [1], and lets us drop our installation-path patch. [1] https://github.com/nomacs/nomacs/issues/203
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, makeWrapper
|
|
, pkgconfig
|
|
, wrapGAppsHook
|
|
, gsettings-desktop-schemas
|
|
|
|
, qtbase
|
|
, qttools
|
|
, qtsvg
|
|
|
|
, exiv2
|
|
, opencv
|
|
, libraw
|
|
, libtiff
|
|
, quazip
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "3.8.1";
|
|
src = fetchFromGitHub {
|
|
owner = "nomacs";
|
|
repo = "nomacs";
|
|
rev = version;
|
|
sha256 = "1irms980d7acdqrfn8isw55vgc4d9n26ff86887vk7xfvxs0ayla";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|