depot/third_party/nixpkgs/pkgs/development/lisp-modules-new-obsolete/examples/bordeaux-threads.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

43 lines
1.1 KiB
Nix

# To run this example from the command line, run this command:
#
# $ nix-build ./bordeaux-threads.nix
# $ ls ./result/
#
# To run from a nix repl, run:
# $ nix repl
# nix-repl> bt = import ./bordeaux-threads.nix
# nix-repl> :b bt
#
# In the `result` directory you can find .fasl files of the
# bordeaux-threads library:
#
# $ ls -l ./result/src/
let
pkgs = import ../../../../default.nix {};
sbcl = "${pkgs.sbcl}/bin/sbcl --script";
alexandria = pkgs.lispPackages_new.build-asdf-system {
pname = "alexandria";
version = "v1.4";
src = pkgs.fetchzip {
url = "https://gitlab.common-lisp.net/alexandria/alexandria/-/archive/v1.4/alexandria-v1.4.tar.gz";
sha256 = "0r1adhvf98h0104vq14q7y99h0hsa8wqwqw92h7ghrjxmsvz2z6l";
};
lisp = sbcl;
};
bordeaux-threads = pkgs.lispPackages_new.build-asdf-system {
pname = "bordeaux-threads";
version = "0.8.8";
src = pkgs.fetchzip {
url = "https://github.com/sionescu/bordeaux-threads/archive/v0.8.8.tar.gz";
sha256 = "19i443fz3488v1pbbr9x24y8h8vlyhny9vj6c9jk5prm702awrp6";
};
lisp = sbcl;
lispLibs = [ alexandria ];
};
in bordeaux-threads