24 # Nixpkgs moved to argparse 3.x, but we need ~2.9
25 argparse_2_9 = argparse.overrideAttrs (oldAttrs: {
28 src = fetchFromGitHub {
32 sha256 = "sha256-vbf4kePi5gfg9ub4aP1cCK1jtiA65bUS9+5Ghgvxt/E=";
38 clangStdenv.mkDerivation rec {
42 src = fetchFromGitHub {
46 hash = "sha256-OfZU+z+p3/a36GntusBfwfFu3ssJW4Fu7SV3SMCoo1I=";
50 ./0001-Fix-bug-in-extract_filename.patch
51 ./0002-Don-t-pass-extra-includes-configure-this-with-flags.patch
54 nativeBuildInputs = [ cmake ];
71 cmakeBuildType = if debug then "Debug" else "Release";
74 substituteInPlace src/xmagics/executable.cpp \
75 --replace "getDataLayout" "getDataLayoutString"
76 substituteInPlace src/xmagics/execution.cpp \
77 --replace "simplisticCastAs" "castAs"
78 substituteInPlace src/xmime_internal.hpp \
79 --replace "code.str()" "code.str().str()"
85 description = "Jupyter kernel for the C++ programming language";
87 homepage = "https://github.com/jupyter-xeus/xeus-cling";
88 maintainers = with lib.maintainers; [ thomasjm ];
89 platforms = lib.platforms.unix;
90 license = lib.licenses.mit;