mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
73 lines
1.7 KiB
Nix
73 lines
1.7 KiB
Nix
{ lib
|
|
, stdenv
|
|
, llvmPackages
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, cmake
|
|
, llvm_12
|
|
, ncurses
|
|
, readline
|
|
, zlib
|
|
, libxml2
|
|
, python3
|
|
}:
|
|
llvmPackages.stdenv.mkDerivation {
|
|
pname = "hobbes";
|
|
version = "0-unstable-2023-06-03";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "morganstanley";
|
|
repo = "hobbes";
|
|
rev = "88a712b85bc896a4c87e60c12321445f1cdcfd00";
|
|
hash = "sha256-2v0yk35/cLKTjX0Qbc8cjc7Y6bamRSa9GpPvGoxL2Cw=";
|
|
};
|
|
|
|
patches = [
|
|
# fix build for LLVM-12+
|
|
# https://github.com/morganstanley/hobbes/pull/452
|
|
(fetchpatch {
|
|
name = "include-cstdint.patch";
|
|
url = "https://github.com/morganstanley/hobbes/commit/924b71fca06c61e606792cc8db8521fb499d4237.patch";
|
|
hash = "sha256-/VsWtTYc3LBOnm4Obgx/MOqaaWZhUc8yzmkygtNz+mY=";
|
|
})
|
|
];
|
|
|
|
# only one warning generated. try to remove on next update
|
|
env.CXXFLAGS = "-Wno-error=deprecated-copy";
|
|
|
|
# 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
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
llvm_12
|
|
ncurses
|
|
readline
|
|
zlib
|
|
libxml2
|
|
python3
|
|
];
|
|
|
|
doCheck = true;
|
|
checkTarget = "test";
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
description = "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.
|
|
'';
|
|
homepage = "https://github.com/morganstanley/hobbes";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ kthielen thmzlt ];
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
};
|
|
}
|