mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
50 lines
907 B
Nix
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;
|
|
};
|
|
})
|