cimg: cosmetic changes

- use rec-less, finalAttrs-style attributes
- remove nested `with` from meta attributes
This commit is contained in:
Anderson Torres 2023-05-02 21:57:49 -03:00
parent 5cce9f0c44
commit 9735d32e8b

View file

@ -5,14 +5,14 @@
, gmic-qt , gmic-qt
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "cimg"; pname = "cimg";
version = "3.2.4"; version = "3.2.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "GreycLab"; owner = "GreycLab";
repo = "CImg"; repo = "CImg";
rev = "v.${version}"; rev = "v.${finalAttrs.version}";
hash = "sha256-CQYY5aKRDe6F7GrBJfqt0t/rjjdZnr/c/cqhr6yVACA="; hash = "sha256-CQYY5aKRDe6F7GrBJfqt0t/rjjdZnr/c/cqhr6yVACA=";
}; };
@ -31,11 +31,11 @@ stdenv.mkDerivation rec {
''; '';
passthru.tests = { passthru.tests = {
# Need to update in lockstep. # Needs to update them all in lockstep.
inherit gmic gmic-qt; inherit gmic gmic-qt;
}; };
meta = with lib; { meta = {
homepage = "http://cimg.eu/"; homepage = "http://cimg.eu/";
description = "A small, open source, C++ toolkit for image processing"; description = "A small, open source, C++ toolkit for image processing";
longDescription = '' longDescription = ''
@ -44,8 +44,11 @@ stdenv.mkDerivation rec {
C++. Due to its generic conception, it can cover a wide range of image C++. Due to its generic conception, it can cover a wide range of image
processing applications. processing applications.
''; '';
license = licenses.cecill-c; license = lib.licenses.cecill-c;
maintainers = [ maintainers.AndersonTorres maintainers.lilyinstarlight ]; maintainers = [
platforms = platforms.unix; lib.maintainers.AndersonTorres
lib.maintainers.lilyinstarlight
];
platforms = lib.platforms.unix;
}; };
} })