nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.2 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 buildDunePackage, 6 ocaml, 7 dune-configurator, 8 pkg-config, 9 cairo, 10}: 11 12buildDunePackage (finalAttrs: { 13 pname = "cairo2"; 14 version = "0.6.5"; 15 16 src = fetchurl { 17 url = "https://github.com/Chris00/ocaml-cairo/releases/download/${finalAttrs.version}/cairo2-${finalAttrs.version}.tbz"; 18 hash = "sha256-JdxByUNtmrz1bKrZoQWUT/c0YEG4zGoqZUq4hItlc3I="; 19 }; 20 21 nativeBuildInputs = [ pkg-config ]; 22 buildInputs = [ 23 cairo 24 dune-configurator 25 ]; 26 27 doCheck = 28 !( 29 stdenv.hostPlatform.isDarwin 30 # https://github.com/Chris00/ocaml-cairo/issues/19 31 || lib.versionAtLeast ocaml.version "4.10" 32 ); 33 34 meta = { 35 homepage = "https://github.com/Chris00/ocaml-cairo"; 36 description = "Binding to Cairo, a 2D Vector Graphics Library"; 37 longDescription = '' 38 This is a binding to Cairo, a 2D graphics library with support for 39 multiple output devices. Currently supported output targets include 40 the X Window System, Quartz, Win32, image buffers, PostScript, PDF, 41 and SVG file output. 42 ''; 43 license = lib.licenses.lgpl3; 44 maintainers = with lib.maintainers; [ 45 jirkamarsik 46 vbgl 47 ]; 48 }; 49})