mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
7042530075
The old maintainer @ahmedtd sent me the following email: Title: Are you interested in being the NixPkgs maintainer for nomacs? Body: I don't run NixOS anymore, so I can't really build or check the PRs.
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ stdenv
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, cmake
|
|
, pkgconfig
|
|
|
|
, qtbase
|
|
, qttools
|
|
, qtsvg
|
|
|
|
, exiv2
|
|
, opencv4
|
|
, libraw
|
|
, libtiff
|
|
, quazip
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "nomacs";
|
|
version = "3.14.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nomacs";
|
|
repo = "nomacs";
|
|
rev = version;
|
|
sha256 = "1vms13kyg7cpqi2hxvrrhlnl7cq92ijr7dm1kl5ryglpcagqv811";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
setSourceRoot = ''
|
|
sourceRoot=$(echo */ImageLounge)
|
|
'';
|
|
|
|
nativeBuildInputs = [cmake
|
|
pkgconfig];
|
|
|
|
buildInputs = [qtbase
|
|
qttools
|
|
qtsvg
|
|
exiv2
|
|
opencv4
|
|
libraw
|
|
libtiff
|
|
quazip];
|
|
|
|
cmakeFlags = ["-DENABLE_OPENCV=ON"
|
|
"-DENABLE_RAW=ON"
|
|
"-DENABLE_TIFF=ON"
|
|
"-DENABLE_QUAZIP=ON"
|
|
"-DENABLE_TRANSLATIONS=ON"
|
|
"-DUSE_SYSTEM_QUAZIP=ON"];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://nomacs.org";
|
|
description = "Qt-based image viewer";
|
|
maintainers = with stdenv.lib.maintainers; [ mindavi ];
|
|
license = licenses.gpl3Plus;
|
|
repositories.git = "https://github.com/nomacs/nomacs.git";
|
|
inherit (qtbase.meta) platforms;
|
|
};
|
|
}
|