MyNixOS website logo
Description

Raw CEF3 bindings.

Raw bindings to CEF3 (Chromium Embedded Framework). For more info and installation instructions see the README

Linux Build Status Mac Build Status Windows Build Status

Haskell bindings to cef3.

There is also a WIP cef3-simple for some higher level functionality of some common tasks. For usage example you can check the cef3-example repo.

Installation

If you use nix or if you are on windows - see the specific subsections below.

Here is a general gist if you'd like to do it in some alternative way.

First you will need libcef (branch 1750) installed somewhere on your machine. For linux or windows 64bit you can download it from the release page of this repo. Alternatively you can build it from source if you prefer.

Next you will need to tell ghc where the required lib and include dirs are, with cabal you can do it like so:

cabal configure \
  --extra-lib-dirs="<cef3-location>/Release" \
  --extra-include-dirs="<cef3-location>" \
  --extra-include-dirs="<cef3-location>/include" \
  --extra-include-dirs="<cef3-location>/include/capi"

Then you should be able to install and use it.

Linux - Nix/NixOS

If you don't have nix:

curl https://nixos.org/nix/install | sh

Otherwise

nix-build default.nix

Beware: It takes about 20min and ~800M ram to build it on my machine. I will add this package to nixpkgs in the future so you will be able to automatically download it prebuild from binary caches, but for now beware.

Windows - Stack

You will need to have stack, curl and 7zip installed and in your PATH for setup.bat to work.

.\scripts\setup.bat

This will download cef lib and place it in C:\cef3-dev

stack setup
.\scripts\configure.bat

The configure.bat will point stack to where setup.bat installed the library.

Alternatively if you already have cef (branch 1750) installed somewhere you can just point the configure in that direction:

.\scripts\configure.bat <path-to-cef>

Finally run stack install and you're golden.

Mac

TODO...


Disclaimer: This bindings are based on one done by Daniel Austin here.

Metadata

Version

0.1.0

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows