1{ lib
2, stdenv
3, fetchurl
4, jasper
5, libpng
6, libjpeg
7, zlib
8, llvmPackages
9}:
10
11stdenv.mkDerivation rec {
12 pname = "aaphoto";
13 version = "0.45";
14
15 src = fetchurl {
16 url = "http://log69.com/downloads/aaphoto_sources_${version}.tar.gz";
17 sha256 = "sha256-06koJM7jNVFqVgqg6BmOZ74foqk6yjUIFnwULzPZ4go=";
18 };
19
20 nativeBuildInputs = lib.optionals stdenv.cc.isClang [
21 llvmPackages.openmp
22 ];
23
24 buildInputs = [
25 jasper
26 libpng
27 libjpeg
28 zlib
29 ];
30
31 postInstall = ''
32 install -Dm644 NEWS README REMARKS TODO -t $out/share/doc/${pname}
33 '';
34
35 meta = with lib; {
36 homepage = "http://log69.com/aaphoto_en.html";
37 description = "Free and open source automatic photo adjusting software";
38 longDescription = ''
39 Auto Adjust Photo tries to give a solution for the automatic color
40 correction of photos. This means setting the contrast, color balance,
41 saturation and gamma levels of the image by analization.
42
43 This can be a solution for those kind of users who are not able to manage
44 and correct images with complicated graphical softwares, or just simply
45 don't intend to spend a lot of time with manually correcting the images
46 one-by-one.
47 '';
48 license = licenses.gpl3Plus;
49 maintainers = with maintainers; [ AndersonTorres ];
50 platforms = platforms.unix;
51 };
52}