2022-03-13 15:04:39 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, owee }:
|
|
|
|
|
|
|
|
lib.throwIfNot (lib.versionAtLeast "4.12" ocaml.version)
|
|
|
|
"spacetime_lib is not available for OCaml ${ocaml.version}"
|
2017-01-24 22:18:33 +01:00
|
|
|
|
2019-09-16 08:29:43 +02:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "spacetime_lib";
|
|
|
|
version = "0.3.0";
|
2017-01-24 22:18:33 +01:00
|
|
|
|
2021-03-30 08:28:24 +02:00
|
|
|
useDune2 = true;
|
|
|
|
|
2017-01-24 22:18:33 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lpw25";
|
|
|
|
repo = "spacetime_lib";
|
|
|
|
rev = version;
|
2019-09-16 08:29:43 +02:00
|
|
|
sha256 = "0biisgbycr5v3nm5jp8i0h6vq76vzasdjkcgh8yr7fhxc81jgv3p";
|
2017-01-24 22:18:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ owee ];
|
|
|
|
|
2020-07-17 16:00:52 +02:00
|
|
|
preConfigure = ''
|
|
|
|
bash ./configure.sh
|
|
|
|
'';
|
|
|
|
|
2017-01-24 22:18:33 +01:00
|
|
|
meta = {
|
|
|
|
description = "An OCaml library providing some simple operations for handling OCaml “spacetime” profiles";
|
|
|
|
inherit (src.meta) homepage;
|
2019-09-16 08:29:43 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-01-24 22:18:33 +01:00
|
|
|
};
|
|
|
|
}
|