2020-01-09 02:05:47 +01:00
|
|
|
# This library is meant to make writing portable multi-threaded apps
|
|
|
|
# in Common Lisp simple.
|
2020-02-21 13:47:29 +01:00
|
|
|
{ depot, ... }:
|
2020-01-09 02:05:47 +01:00
|
|
|
|
2021-08-09 02:47:07 +02:00
|
|
|
let
|
|
|
|
src = builtins.fetchGit {
|
|
|
|
url = "https://github.com/sionescu/bordeaux-threads.git";
|
|
|
|
rev = "499b6d3f0ce635417d6096acf0a671d8bf3f6e5f";
|
|
|
|
};
|
|
|
|
getSrc = f: "${src}/src/${f}";
|
2020-02-21 13:47:29 +01:00
|
|
|
in depot.nix.buildLisp.library {
|
2020-01-09 02:05:47 +01:00
|
|
|
name = "bordeaux-threads";
|
2020-02-21 13:47:29 +01:00
|
|
|
deps = [ depot.third_party.lisp.alexandria ];
|
2020-01-09 02:05:47 +01:00
|
|
|
|
2021-08-09 02:47:07 +02:00
|
|
|
srcs = map getSrc [
|
2020-01-09 02:05:47 +01:00
|
|
|
"pkgdcl.lisp"
|
|
|
|
"bordeaux-threads.lisp"
|
2021-08-09 02:47:07 +02:00
|
|
|
] ++ [
|
|
|
|
{
|
|
|
|
sbcl = getSrc "impl-sbcl.lisp";
|
|
|
|
ecl = getSrc "impl-ecl.lisp";
|
|
|
|
}
|
|
|
|
] ++ map getSrc [
|
2020-01-09 02:05:47 +01:00
|
|
|
"default-implementations.lisp"
|
|
|
|
];
|
|
|
|
}
|