Unverified Commit 492fb942 authored by Vincent Laporte's avatar Vincent Laporte
Browse files

ocamlPackages.cairo2: small cleaning

parent 252e420b
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
@@ -9,18 +9,15 @@
  cairo,
}:

buildDunePackage rec {
buildDunePackage (finalAttrs: {
  pname = "cairo2";
  version = "0.6.5";

  src = fetchurl {
    url = "https://github.com/Chris00/ocaml-cairo/releases/download/${version}/cairo2-${version}.tbz";
    sha256 = "sha256-JdxByUNtmrz1bKrZoQWUT/c0YEG4zGoqZUq4hItlc3I=";
    url = "https://github.com/Chris00/ocaml-cairo/releases/download/${finalAttrs.version}/cairo2-${finalAttrs.version}.tbz";
    hash = "sha256-JdxByUNtmrz1bKrZoQWUT/c0YEG4zGoqZUq4hItlc3I=";
  };

  minimalOCamlVersion = "4.02";
  useDune2 = true;

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [
    cairo
@@ -34,7 +31,7 @@ buildDunePackage rec {
      || lib.versionAtLeast ocaml.version "4.10"
    );

  meta = with lib; {
  meta = {
    homepage = "https://github.com/Chris00/ocaml-cairo";
    description = "Binding to Cairo, a 2D Vector Graphics Library";
    longDescription = ''
@@ -43,10 +40,10 @@ buildDunePackage rec {
      the X Window System, Quartz, Win32, image buffers, PostScript, PDF,
      and SVG file output.
    '';
    license = licenses.lgpl3;
    maintainers = with maintainers; [
    license = lib.licenses.lgpl3;
    maintainers = with lib.maintainers; [
      jirkamarsik
      vbgl
    ];
  };
}
})