zipline: refactor environment variables (#377101)
[NixPkgs.git] / pkgs / by-name / aa / aaphoto / package.nix
blob8dad7cf82d50a30a290ffb8fd3df66013f52aabc
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   jasper,
6   libpng,
7   libjpeg,
8   zlib,
9   llvmPackages,
12 stdenv.mkDerivation rec {
13   pname = "aaphoto";
14   version = "0.45";
16   src = fetchFromGitHub {
17     owner = "log69";
18     repo = "aaphoto";
19     rev = "581b3fad60382bdd36356155112559f731e31be3";
20     hash = "sha256-PcvZ6v8vcZcrSn9EJ0CqxYz9gOJXlcVIkLLzFik0Pec=";
21   };
23   nativeBuildInputs = lib.optionals stdenv.cc.isClang [
24     llvmPackages.openmp
25   ];
27   buildInputs = [
28     jasper
29     libpng
30     libjpeg
31     zlib
32   ];
34   postInstall = ''
35     install -Dm644 NEWS README REMARKS TODO -t $out/share/doc/${pname}
36   '';
38   meta = with lib; {
39     homepage = "https://github.com/log69/aaphoto";
40     description = "Free and open source automatic photo adjusting software";
41     longDescription = ''
42       Auto Adjust Photo tries to give a solution for the automatic color
43       correction of photos. This means setting the contrast, color balance,
44       saturation and gamma levels of the image by analization.
46       This can be a solution for those kind of users who are not able to manage
47       and correct images with complicated graphical softwares, or just simply
48       don't intend to spend a lot of time with manually correcting the images
49       one-by-one.
50     '';
51     license = licenses.gpl3Plus;
52     maintainers = with maintainers; [ AndersonTorres ];
53     platforms = platforms.unix;
54     mainProgram = "aaphoto";
55   };