about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/xeus
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/xeus')
-rw-r--r--nixpkgs/pkgs/development/libraries/xeus/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/xeus/default.nix b/nixpkgs/pkgs/development/libraries/xeus/default.nix
new file mode 100644
index 000000000000..5e7380fc974b
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/xeus/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+, doctest
+, nlohmann_json
+, libuuid
+, xtl
+}:
+
+stdenv.mkDerivation rec {
+  pname = "xeus";
+  version = "3.1.1";
+
+  src = fetchFromGitHub {
+    owner = "jupyter-xeus";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-jZZe8SegQuFLoH2Qp+etoKELGEWdlYQPXj14DNIMJ/0=";
+  };
+
+  nativeBuildInputs = [
+    cmake
+    doctest
+  ];
+
+  buildInputs = [
+    nlohmann_json
+    libuuid
+    xtl
+  ];
+
+  cmakeFlags = [
+    "-DXEUS_BUILD_TESTS=ON"
+  ];
+
+  doCheck = true;
+  preCheck = ''export LD_LIBRARY_PATH=$PWD'';
+
+  meta = with lib; {
+    homepage = "https://xeus.readthedocs.io";
+    description = "C++ implementation of the Jupyter Kernel protocol";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ serge_sans_paille ];
+    platforms = platforms.all;
+  };
+}