2020-01-09 02:55:42 +01:00
|
|
|
# Common Lisp bindings to OpenSSL
|
2021-04-10 02:13:18 +02:00
|
|
|
{ depot, pkgs, ... }:
|
2020-01-09 02:55:42 +01:00
|
|
|
|
2020-02-21 13:47:29 +01:00
|
|
|
with depot.nix;
|
2020-01-27 00:59:07 +01:00
|
|
|
|
2021-11-21 22:09:43 +01:00
|
|
|
let
|
|
|
|
src = pkgs.fetchgit {
|
2020-01-09 02:55:42 +01:00
|
|
|
url = "https://github.com/cl-plus-ssl/cl-plus-ssl.git";
|
|
|
|
rev = "29081992f6d7b4e3aa2c5eeece4cd92b745071f4";
|
2021-11-21 22:09:43 +01:00
|
|
|
hash = "sha256:16lyrixl98b7vy29dbbzkbq0xaz789350dajrr1gdny5i55rkjq0";
|
2020-01-09 02:55:42 +01:00
|
|
|
};
|
2020-01-27 00:59:07 +01:00
|
|
|
in
|
|
|
|
buildLisp.library {
|
2020-01-09 02:55:42 +01:00
|
|
|
name = "cl-plus-ssl";
|
2020-02-21 13:47:29 +01:00
|
|
|
deps = with depot.third_party.lisp; [
|
2020-01-09 02:55:42 +01:00
|
|
|
alexandria
|
|
|
|
bordeaux-threads
|
|
|
|
cffi
|
|
|
|
flexi-streams
|
|
|
|
trivial-features
|
|
|
|
trivial-garbage
|
|
|
|
trivial-gray-streams
|
2021-08-13 22:24:50 +02:00
|
|
|
{
|
|
|
|
scbl = buildLisp.bundled "uiop";
|
|
|
|
default = buildLisp.bundled "asdf";
|
|
|
|
}
|
|
|
|
{ sbcl = buildLisp.bundled "sb-posix"; }
|
2020-01-09 02:55:42 +01:00
|
|
|
];
|
|
|
|
|
2021-04-10 02:13:18 +02:00
|
|
|
native = [ pkgs.openssl ];
|
2020-01-09 02:55:42 +01:00
|
|
|
|
|
|
|
srcs = map (f: src + ("/src/" + f)) [
|
|
|
|
"package.lisp"
|
|
|
|
"reload.lisp"
|
|
|
|
"conditions.lisp"
|
|
|
|
"ffi.lisp"
|
|
|
|
"x509.lisp"
|
|
|
|
"ffi-buffer-all.lisp"
|
|
|
|
"ffi-buffer.lisp"
|
|
|
|
"streams.lisp"
|
|
|
|
"bio.lisp"
|
|
|
|
"random.lisp"
|
|
|
|
"context.lisp"
|
|
|
|
"verify-hostname.lisp"
|
|
|
|
];
|
2021-08-09 02:47:07 +02:00
|
|
|
|
|
|
|
brokenOn = [
|
|
|
|
"ecl" # dynamic cffi
|
|
|
|
];
|
2020-01-09 02:55:42 +01:00
|
|
|
}
|