mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
7ac6f7279d
based on 4c4cef812e
25 lines
719 B
Nix
25 lines
719 B
Nix
# To run this example from a nix repl, run:
|
|
# $ nix repl
|
|
# nix-repl> abcl-packages = import ./abcl-package-set.nix
|
|
# nix-repl> builtins.attrNames abcl-packages
|
|
# nix-repl> builtins.length (builtins.attrNames abcl-packages)
|
|
#
|
|
# The import returns a package set, which you can use for example to
|
|
# discover what packages are available in lispWithPackages:
|
|
#
|
|
# nix-repl> abcl-packages.cl-op<TAB>
|
|
# nix-repl> abcl-packages.cl-opengl
|
|
# nix-repl> # cool, we can use cl-opengl
|
|
# nix-repl> # some-abcl-with-packages (p: [ p.cl-opengl ])
|
|
|
|
|
|
let
|
|
|
|
pkgs = import ../../../../default.nix {};
|
|
|
|
abcl = "${pkgs.abcl}/bin/abcl --batch --load";
|
|
|
|
abcl-packages = pkgs.lispPackages_new.lispPackagesFor abcl;
|
|
|
|
in abcl-packages
|