2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-12-21 02:18:32 +00:00
|
|
|
, fetchurl
|
2021-12-06 16:07:01 +00:00
|
|
|
, jasper
|
|
|
|
, libpng
|
|
|
|
, libjpeg
|
|
|
|
, zlib
|
2023-03-27 19:17:25 +00:00
|
|
|
, llvmPackages
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aaphoto";
|
2021-12-21 02:18:32 +00:00
|
|
|
version = "0.45";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-12-21 02:18:32 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://log69.com/downloads/aaphoto_sources_${version}.tar.gz";
|
|
|
|
sha256 = "sha256-06koJM7jNVFqVgqg6BmOZ74foqk6yjUIFnwULzPZ4go=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
nativeBuildInputs = lib.optionals stdenv.cc.isClang [
|
|
|
|
llvmPackages.openmp
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
jasper
|
|
|
|
libpng
|
|
|
|
libjpeg
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 NEWS README REMARKS TODO -t $out/share/doc/${pname}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://log69.com/aaphoto_en.html";
|
|
|
|
description = "Free and open source automatic photo adjusting software";
|
|
|
|
longDescription = ''
|
|
|
|
Auto Adjust Photo tries to give a solution for the automatic color
|
|
|
|
correction of photos. This means setting the contrast, color balance,
|
|
|
|
saturation and gamma levels of the image by analization.
|
|
|
|
|
|
|
|
This can be a solution for those kind of users who are not able to manage
|
|
|
|
and correct images with complicated graphical softwares, or just simply
|
|
|
|
don't intend to spend a lot of time with manually correcting the images
|
|
|
|
one-by-one.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "aaphoto";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|