Commit 9735d32e authored by Anderson Torres's avatar Anderson Torres
Browse files

cimg: cosmetic changes

- use rec-less, finalAttrs-style attributes
- remove nested `with` from meta attributes
parent 5cce9f0c
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -5,14 +5,14 @@
, gmic-qt
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "cimg";
  version = "3.2.4";

  src = fetchFromGitHub {
    owner = "GreycLab";
    repo = "CImg";
    rev = "v.${version}";
    rev = "v.${finalAttrs.version}";
    hash = "sha256-CQYY5aKRDe6F7GrBJfqt0t/rjjdZnr/c/cqhr6yVACA=";
  };

@@ -31,11 +31,11 @@ stdenv.mkDerivation rec {
  '';

  passthru.tests = {
    # Need to update in lockstep.
    # Needs to update them all in lockstep.
    inherit gmic gmic-qt;
  };

  meta = with lib; {
  meta = {
    homepage = "http://cimg.eu/";
    description = "A small, open source, C++ toolkit for image processing";
    longDescription = ''
@@ -44,8 +44,11 @@ stdenv.mkDerivation rec {
      C++. Due to its generic conception, it can cover a wide range of image
      processing applications.
    '';
    license = licenses.cecill-c;
    maintainers = [ maintainers.AndersonTorres maintainers.lilyinstarlight ];
    platforms = platforms.unix;
    license = lib.licenses.cecill-c;
    maintainers = [
      lib.maintainers.AndersonTorres
      lib.maintainers.lilyinstarlight
    ];
    platforms = lib.platforms.unix;
  };
}
})