linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / cimg / default.nix
blob9c89279cd51fc9459fff470743dd63a8f6ecf771
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "cimg";
5   version = "2.9.6";
7   src = fetchFromGitHub {
8     owner = "dtschump";
9     repo = "CImg";
10     rev = "v.${version}";
11     sha256 = "sha256-RdOfog5FOw5XESyDFX68Lb2MUyCeUuPaq/0UVNTjNKo=";
12   };
14   installPhase = ''
15     install -dm 755 $out/include/CImg/plugins $doc/share/doc/cimg/examples
17     install -m 644 CImg.h $out/include/
18     cp -dr --no-preserve=ownership examples/* $doc/share/doc/cimg/examples/
19     cp -dr --no-preserve=ownership plugins/* $out/include/CImg/plugins/
20     cp README.txt $doc/share/doc/cimg/
21   '';
23   outputs = [ "out" "doc" ];
25   meta = with lib; {
26     description = "A small, open source, C++ toolkit for image processing";
27     longDescription = ''
28       CImg stands for Cool Image. It is easy to use, efficient and is intended
29       to be a very pleasant toolbox to design image processing algorithms in
30       C++. Due to its generic conception, it can cover a wide range of image
31       processing applications.
32     '';
33     homepage = "http://cimg.eu/";
34     license = licenses.cecill-c;
35     maintainers = [ maintainers.AndersonTorres ];
36     platforms = platforms.unix;
37   };