From 49bdd4b71b2209679e90672c981b250570f3e40d Mon Sep 17 00:00:00 2001 From: TANIGUCHI Masaya Date: Wed, 15 Apr 2026 11:52:36 +0900 Subject: [PATCH] add Xeus-haskell --- .../recipes_emscripten/xeus-haskell/build.sh | 15 +++++++ .../xeus-haskell/recipe.yaml | 41 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 recipes/recipes_emscripten/xeus-haskell/build.sh create mode 100644 recipes/recipes_emscripten/xeus-haskell/recipe.yaml diff --git a/recipes/recipes_emscripten/xeus-haskell/build.sh b/recipes/recipes_emscripten/xeus-haskell/build.sh new file mode 100644 index 0000000000..f03b56ca9a --- /dev/null +++ b/recipes/recipes_emscripten/xeus-haskell/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash +set -ex +emcmake cmake \ + -S $PWD \ + -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX="$PREFIX" \ + -DCMAKE_PREFIX_PATH="$PREFIX" \ + -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON \ + -DCMAKE_C_FLAGS="" \ + -DCMAKE_CXX_FLAGS="" \ + -DCMAKE_EXE_LINKER_FLAGS="" \ + -DCMAKE_SHARED_LINKER_FLAGS="" \ + -DCMAKE_SYSTEM_NAME=Emscripten +emmake make -C build install diff --git a/recipes/recipes_emscripten/xeus-haskell/recipe.yaml b/recipes/recipes_emscripten/xeus-haskell/recipe.yaml new file mode 100644 index 0000000000..62b8509dc6 --- /dev/null +++ b/recipes/recipes_emscripten/xeus-haskell/recipe.yaml @@ -0,0 +1,41 @@ +context: + version: 0.3.0 + +package: + name: xeus-haskell + version: ${{ version }} + +source: + url: https://github.com/jupyter-xeus/xeus-haskell/archive/refs/tags/v${{ version }}.tar.gz + sha256: a2ec33edb675d04ea9e206a923aabf39e1e7e58d3b35f4471752ff320e64457f + +build: + number: 0 + +requirements: + build: + - ${{ compiler("cxx") }} + - ${{ compiler("c") }} + - cmake + - make + host: + - nlohmann_json + - nlohmann_json-abi + - xeus + - xeus-lite + +tests: +- package_contents: + files: + - bin/xhaskell.wasm + - bin/xhaskell.js + +about: + license: Apache-2.0 + license_file: LICENSE + summary: Haskell kernel for Jupyter based on xeus + homepage: https://github.com/jupyter-xeus/xeus-haskell + +extra: + recipe-maintainers: + - tani