lol
at 18.03-beta 33 lines 907 B view raw
1{ stdenv, fetchurl, unzip }: 2 3stdenv.mkDerivation rec { 4 5 name = "cimg-${version}"; 6 version = "1.7.9"; 7 8 src = fetchurl { 9 url = "http://cimg.eu/files/CImg_${version}.zip"; 10 sha256 = "07g81jn25y2wksg9ycf9a7f5bfpcdl3xbrkp1xy3czl043a00y7s"; 11 }; 12 13 nativeBuildInputs = [ unzip ]; 14 15 installPhase = '' 16 install -dm 755 $out/include/CImg/plugins $doc/share/doc/cimg/examples 17 18 install -m 644 CImg.h $out/include/ 19 cp -dr --no-preserve=ownership examples/* $doc/share/doc/cimg/examples/ 20 cp -dr --no-preserve=ownership plugins/* $out/include/CImg/plugins/ 21 cp README.txt $doc/share/doc/cimg/ 22 ''; 23 24 outputs = [ "out" "doc" ]; 25 26 meta = with stdenv.lib; { 27 description = "A small, open source, C++ toolkit for image processing"; 28 homepage = http://cimg.eu/; 29 license = licenses.cecill-c; 30 maintainers = [ maintainers.AndersonTorres ]; 31 platforms = platforms.unix; 32 }; 33}