2024-07-07 03:07:26 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromBitbucket
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2024-09-11 01:55:50 +00:00
|
|
|
, util-linux
|
|
|
|
, libselinux
|
|
|
|
, libsepol
|
|
|
|
, libthai
|
|
|
|
, libdatrie
|
|
|
|
, lerc
|
|
|
|
, libxkbcommon
|
|
|
|
, libepoxy
|
|
|
|
, libXtst
|
2024-07-07 03:07:26 +00:00
|
|
|
, wrapGAppsHook3
|
|
|
|
, pixman
|
|
|
|
, libpthreadstubs
|
|
|
|
, gtkmm3
|
|
|
|
, libXau
|
|
|
|
, libXdmcp
|
|
|
|
, lcms2
|
2024-09-11 01:55:50 +00:00
|
|
|
, libraw
|
2024-07-07 03:07:26 +00:00
|
|
|
, libiptcdata
|
|
|
|
, fftw
|
|
|
|
, expat
|
2024-09-11 01:55:50 +00:00
|
|
|
, pcre2
|
2024-07-07 03:07:26 +00:00
|
|
|
, libsigcxx
|
|
|
|
, lensfun
|
|
|
|
, librsvg
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, exiv2
|
|
|
|
, exiftool
|
|
|
|
, mimalloc
|
2024-09-11 01:55:50 +00:00
|
|
|
, openexr_3
|
|
|
|
, ilmbase
|
|
|
|
, opencolorio
|
|
|
|
, color-transformation-language
|
2024-07-07 03:07:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "art";
|
2024-08-05 00:18:24 +00:00
|
|
|
version = "1.23";
|
2024-07-07 03:07:26 +00:00
|
|
|
|
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "agriggio";
|
|
|
|
repo = "art";
|
|
|
|
rev = version;
|
2024-08-05 00:18:24 +00:00
|
|
|
hash = "sha256-OB/Rr4rHNJc40o6esNPDRbhN4EPGf2zhlzzM+mBpUUU=";
|
2024-07-07 03:07:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-09-11 01:55:50 +00:00
|
|
|
util-linux
|
|
|
|
libselinux
|
|
|
|
libsepol
|
|
|
|
libthai
|
|
|
|
libdatrie
|
|
|
|
lerc
|
|
|
|
libxkbcommon
|
|
|
|
libepoxy
|
|
|
|
libXtst
|
2024-07-07 03:07:26 +00:00
|
|
|
pixman
|
|
|
|
libpthreadstubs
|
|
|
|
gtkmm3
|
|
|
|
libXau
|
|
|
|
libXdmcp
|
|
|
|
lcms2
|
2024-09-11 01:55:50 +00:00
|
|
|
libraw
|
2024-07-07 03:07:26 +00:00
|
|
|
libiptcdata
|
|
|
|
fftw
|
|
|
|
expat
|
2024-09-11 01:55:50 +00:00
|
|
|
pcre2
|
2024-07-07 03:07:26 +00:00
|
|
|
libsigcxx
|
|
|
|
lensfun
|
|
|
|
librsvg
|
|
|
|
exiv2
|
|
|
|
exiftool
|
|
|
|
libcanberra-gtk3
|
|
|
|
mimalloc
|
2024-09-11 01:55:50 +00:00
|
|
|
openexr_3
|
|
|
|
ilmbase
|
|
|
|
opencolorio
|
|
|
|
color-transformation-language
|
2024-07-07 03:07:26 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DPROC_TARGET_NUMBER=2"
|
|
|
|
"-DCACHE_NAME_SUFFIX=\"\""
|
2024-09-11 01:55:50 +00:00
|
|
|
"-DENABLE_OCIO=True"
|
|
|
|
"-DENABLE_CTL=1"
|
|
|
|
"-DCTL_INCLUDE_DIR=${color-transformation-language}/include/CTL"
|
2024-07-07 03:07:26 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
CMAKE_CXX_FLAGS = toString [
|
|
|
|
"-std=c++11"
|
|
|
|
"-Wno-deprecated-declarations"
|
|
|
|
"-Wno-unused-result"
|
|
|
|
];
|
|
|
|
env.CXXFLAGS = "-include cstdint"; # needed at least with gcc13 on aarch64-linux
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A raw converter based on RawTherapee";
|
|
|
|
homepage = "https://bitbucket.org/agriggio/art/";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ paperdigits ];
|
|
|
|
mainProgram = "art";
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|