btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / xe / xeus / package.nix
blob9283f20c335f7a1c6ee6ac250b21579fccc32085
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , doctest
6 , nlohmann_json
7 , libuuid
8 , xtl
9 }:
11 stdenv.mkDerivation rec {
12   pname = "xeus";
13   version = "3.2.0";
15   src = fetchFromGitHub {
16     owner = "jupyter-xeus";
17     repo = pname;
18     rev = version;
19     sha256 = "sha256-D/dJ0SHxTHJw63gHD6FRZS7O2TVZ0voIv2mQASEjLA8=";
20   };
22   nativeBuildInputs = [
23     cmake
24     doctest
25   ];
27   buildInputs = [
28     nlohmann_json
29     libuuid
30     xtl
31   ];
33   cmakeFlags = [
34     "-DXEUS_BUILD_TESTS=ON"
35   ];
37   doCheck = true;
38   preCheck = ''export LD_LIBRARY_PATH=$PWD'';
40   meta = with lib; {
41     homepage = "https://xeus.readthedocs.io";
42     description = "C++ implementation of the Jupyter Kernel protocol";
43     license = licenses.bsd3;
44     maintainers = with maintainers; [ serge_sans_paille ];
45     platforms = platforms.all;
46   };