mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 09:58:50 +03:00
8904ce343a
These have changed following commit
c3255fe8ec
.
See also:
- https://github.com/NixOS/nixpkgs/pull/31004
- https://github.com/NixOS/nixpkgs/pull/31106
68 lines
1.3 KiB
Nix
68 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.6.1";
|
|
src = fetchFromGitHub {
|
|
owner = "nomacs";
|
|
repo = "nomacs";
|
|
rev = version;
|
|
sha256 = "0yli05hhmd57v3mynq78nmr15rbpm0vadv273pavmcnayv86yl44";
|
|
};
|
|
|
|
name = "nomacs-${version}";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
setSourceRoot = ''
|
|
sourceRoot=$(echo */ImageLounge)
|
|
'';
|
|
|
|
patches = [./fix-appdata-install.patch];
|
|
|
|
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;
|
|
};
|
|
}
|