2020-04-13 09:41:51 +01:00
|
|
|
{ lib, fetchFromGitHub, fetchpatch, buildDunePackage
|
2019-09-03 20:35:45 +01:00
|
|
|
, base64, bos, core, lwt_react, ocamlgraph, rresult, tyxml
|
2019-06-13 07:40:48 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "bistro";
|
2019-09-03 20:35:45 +01:00
|
|
|
version = "0.5.0";
|
2020-10-29 05:24:33 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
2019-06-13 07:40:48 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pveber";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-09-03 20:35:45 +01:00
|
|
|
sha256 = "114gq48cpj2mvycypa9lfyqqb26wa2gkdfwkcqhnx7m6sdwv9a38";
|
2019-06-13 07:40:48 +01:00
|
|
|
};
|
|
|
|
|
2020-12-08 20:50:14 +00:00
|
|
|
patches = [
|
2020-04-13 09:41:51 +01:00
|
|
|
# The following patch adds support for core.v0.13
|
2020-12-08 20:50:14 +00:00
|
|
|
(fetchpatch {
|
2020-04-13 09:41:51 +01:00
|
|
|
url = "https://github.com/pveber/bistro/commit/0931db43a146ad7829dff5120161a775f732a878.patch";
|
|
|
|
sha256 = "06y0sxbbab1mssc1xfjjv12lpv4rny5iqv9qkdqyzrvzpl1bdvnd";
|
2020-12-08 20:50:14 +00:00
|
|
|
})
|
|
|
|
# The following patch adds support for core.v0.14
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/pveber/bistro/commit/afbdcb2af7777ef7711c7f3c45dff605350a27b2.patch";
|
|
|
|
sha256 = "0ix6lx9qjnn3vqp0164c6l5an8b4rq69h2mxrg89piyk2g1yv0zg";
|
|
|
|
})
|
|
|
|
];
|
2020-04-13 09:41:51 +01:00
|
|
|
|
2020-02-05 21:35:39 +00:00
|
|
|
propagatedBuildInputs = [ base64 bos core lwt_react ocamlgraph rresult tyxml ];
|
2019-06-13 07:40:48 +01:00
|
|
|
|
2020-12-08 20:50:14 +00:00
|
|
|
minimumOCamlVersion = "4.08";
|
2019-06-13 07:40:48 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Build and execute typed scientific workflows";
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|