22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
23 lines
692 B
Nix
23 lines
692 B
Nix
# To run this example from a nix repl, run:
|
|
# $ nix repl
|
|
# nix-repl> abcl-with-packages = import ./abcl-with-packages.nix
|
|
# nix-repl> :b abcl-with-packages (p: [ p.cffi ])
|
|
#
|
|
# The import returns a function, which you can call to get access to
|
|
# thousands of libraries, like, cffi. This works in ABCL by closing
|
|
# over the JNA dependency:
|
|
#
|
|
# nix-repl> awp = abcl-with-packages (p: [ p.cffi ])
|
|
# nix-repl> awp.CLASSPATH
|
|
# nix-repl> cffi = builtins.head (awp.lispLibs)
|
|
# nix-repl> cffi.javaLibs
|
|
|
|
let
|
|
|
|
pkgs = import ../../../../default.nix {};
|
|
|
|
abcl = "${pkgs.abcl}/bin/abcl --batch --load";
|
|
|
|
abcl-with-packages = pkgs.lispPackages_new.lispWithPackages abcl;
|
|
|
|
in abcl-with-packages
|