From b818fb185a5a9cc1b424c915b897b62af1f44f33 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Sat, 4 Apr 2020 17:20:10 -0300 Subject: [PATCH] cimg: 2.8.4 -> 2.9.0 --- pkgs/development/libraries/cimg/default.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/cimg/default.nix b/pkgs/development/libraries/cimg/default.nix index 89bbdff3bbcb..8a67ab09a195 100644 --- a/pkgs/development/libraries/cimg/default.nix +++ b/pkgs/development/libraries/cimg/default.nix @@ -1,16 +1,16 @@ -{ stdenv, fetchurl, unzip }: +{ stdenv, fetchFromGitHub }: stdenv.mkDerivation rec { pname = "cimg"; - version = "2.8.4"; + version = "2.9.0"; - src = fetchurl { - url = "http://cimg.eu/files/CImg_${version}.zip"; - sha256 = "1y4j2dmk4nnc5rx65c2px7r0nfq5117pmqpvi7klp9wmgcjs29gf"; + src = fetchFromGitHub { + owner = "dtschump"; + repo = "CImg"; + rev = "v.${version}"; + sha256 = "1x43c1w2kzr6h3j7y3kwiwb7nba0iymck6bq9psvp53mh9xxrfd1"; }; - nativeBuildInputs = [ unzip ]; - installPhase = '' install -dm 755 $out/include/CImg/plugins $doc/share/doc/cimg/examples @@ -24,6 +24,12 @@ stdenv.mkDerivation rec { meta = with stdenv.lib; { description = "A small, open source, C++ toolkit for image processing"; + longDescription = '' + CImg stands for Cool Image. It is easy to use, efficient and is intended + to be a very pleasant toolbox to design image processing algorithms in + C++. Due to its generic conception, it can cover a wide range of image + processing applications. + ''; homepage = "http://cimg.eu/"; license = licenses.cecill-c; maintainers = [ maintainers.AndersonTorres ];