nixpkgs/pkgs/by-name/xe/xeus/package.nix
2025-06-02 06:16:01 +02:00

50 lines
907 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
doctest,
nlohmann_json,
libuuid,
nix-update-script,
xtl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xeus";
version = "5.2.2";
src = fetchFromGitHub {
owner = "jupyter-xeus";
repo = "xeus";
tag = finalAttrs.version;
hash = "sha256-nR247SGnc3TSj6PCrJmY6ccACvYKeSYFMgoawyYLBNs=";
};
nativeBuildInputs = [
cmake
doctest
];
buildInputs = [
nlohmann_json
libuuid
];
cmakeFlags = [
"-DXEUS_BUILD_TESTS=ON"
];
doCheck = true;
preCheck = ''export LD_LIBRARY_PATH=$PWD'';
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://xeus.readthedocs.io";
description = "C++ implementation of the Jupyter Kernel protocol";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ serge_sans_paille ];
platforms = lib.platforms.all;
};
})