2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, llvm_12, ncurses, readline, zlib, libxml2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "hobbes";
|
|
|
|
version = "unstable-2021-04-28";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "morgan-stanley";
|
|
|
|
repo = "hobbes";
|
2021-06-28 23:13:55 +00:00
|
|
|
rev = "737c7ca63516f6b3dca0e659c3de75d4325472d6";
|
|
|
|
sha256 = "0fjsmz1sbrp6464mrb9ha7p615w2l2pdldsc2ayvcrvxfyi1r4gj";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
# TODO: re-enable Python tests once they work on Python 3
|
|
|
|
# currently failing with "I don't know how to decode the primitive type: b'bool'"
|
|
|
|
postPatch = ''
|
|
|
|
rm test/Python.C
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
llvm_12
|
2020-04-24 23:36:52 +00:00
|
|
|
ncurses
|
|
|
|
readline
|
|
|
|
zlib
|
2021-05-28 09:39:13 +00:00
|
|
|
libxml2
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
checkTarget = "test";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A language and an embedded JIT compiler";
|
|
|
|
longDescription = ''
|
|
|
|
Hobbes is a a language, embedded compiler, and runtime for efficient
|
|
|
|
dynamic expression evaluation, data storage and analysis.
|
|
|
|
'';
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/morganstanley/hobbes";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2020-05-29 06:06:01 +00:00
|
|
|
maintainers = with maintainers; [ kthielen thmzlt ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
}
|