nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 llvmPackages,
5 fetchFromGitHub,
6 cmake,
7 llvm_12,
8 ncurses,
9 readline,
10 zlib,
11 libxml2,
12 python3,
13}:
14llvmPackages.stdenv.mkDerivation {
15 pname = "hobbes";
16 version = "0-unstable-2025-04-23";
17
18 src = fetchFromGitHub {
19 owner = "morganstanley";
20 repo = "hobbes";
21 rev = "0829030be03d47f91075cbebd0c9565f44bf9911";
22 hash = "sha256-GZ26XL4++2MWQED2tVWeJ8HFcFQUXnXZ3+JCgdlAXNo=";
23 };
24
25 CXXFLAGS = [
26 "-Wno-error=missing-template-arg-list-after-template-kw"
27 "-Wno-error=deprecated-copy"
28 ];
29
30 nativeBuildInputs = [
31 cmake
32 ];
33
34 buildInputs = [
35 llvm_12
36 ncurses
37 readline
38 zlib
39 libxml2
40 python3
41 ];
42
43 doCheck = true;
44 checkTarget = "test";
45
46 meta = with lib; {
47 broken = stdenv.hostPlatform.isDarwin;
48 description = "Language and an embedded JIT compiler";
49 longDescription = ''
50 Hobbes is a a language, embedded compiler, and runtime for efficient
51 dynamic expression evaluation, data storage and analysis.
52 '';
53 homepage = "https://github.com/morganstanley/hobbes";
54 license = licenses.asl20;
55 maintainers = with maintainers; [
56 kthielen
57 thmzlt
58 ];
59 platforms = [
60 "x86_64-linux"
61 "x86_64-darwin"
62 ];
63 };
64}