ocamlPackages.cairo2: use Dune 2

This commit is contained in:
Vincent Laporte 2021-04-08 15:35:07 +02:00 committed by Vincent Laporte
parent e3aa8c650b
commit 982bdad584
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, buildDunePackage, ocaml
{ stdenv, lib, fetchurl, buildDunePackage, ocaml, dune-configurator
, pkg-config, cairo
}:
@ -6,13 +6,15 @@ buildDunePackage rec {
pname = "cairo2";
version = "0.6.1";
useDune2 = true;
src = fetchurl {
url = "https://github.com/Chris00/ocaml-cairo/releases/download/${version}/cairo2-${version}.tbz";
sha256 = "1ik4qf4b9443sliq2z7x9acd40rmzvyzjh3bh98wvjklxbb84a9i";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ cairo ];
buildInputs = [ cairo dune-configurator ];
doCheck = !(stdenv.isDarwin
# https://github.com/Chris00/ocaml-cairo/issues/19