tvl-depot/third_party/lisp/hunchentoot.nix
Vincent Ambo e9bfa84aaf refactor(3p/lisp): Use sources from nixpkgs where possible
nixpkgs includes a lispPackages set which is generated from something.
In the meantime, we pretty much never update our Lisp deps.

This commit ties our sources to nixpkgs.lispPackages where the desired
package is included in nixpkgs (which is actually most of them!)

Change-Id: I520a006535980271b2fa4e0ed4e34029475dcbef
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4331
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
2021-12-15 10:34:02 +00:00

61 lines
1.1 KiB
Nix

# Hunchentoot is a web framework for Common Lisp.
{ depot, pkgs, ...}:
let
src = with pkgs; srcOnly lispPackages.hunchentoot;
url-rewrite = depot.nix.buildLisp.library {
name = "url-rewrite";
srcs = map (f: src + ("/url-rewrite/" + f)) [
"packages.lisp"
"specials.lisp"
"primitives.lisp"
"util.lisp"
"url-rewrite.lisp"
];
};
in depot.nix.buildLisp.library {
name = "hunchentoot";
deps = with depot.third_party.lisp; [
alexandria
bordeaux-threads
chunga
cl-base64
cl-fad
rfc2388
cl-plus-ssl
cl-ppcre
flexi-streams
md5
trivial-backtrace
usocket
url-rewrite
];
srcs = map (f: src + ("/" + f)) [
"hunchentoot.asd"
"packages.lisp"
"compat.lisp"
"specials.lisp"
"conditions.lisp"
"mime-types.lisp"
"util.lisp"
"log.lisp"
"cookie.lisp"
"reply.lisp"
"request.lisp"
"session.lisp"
"misc.lisp"
"headers.lisp"
"set-timeouts.lisp"
"taskmaster.lisp"
"acceptor.lisp"
"easy-handlers.lisp"
];
brokenOn = [
"ecl" # dynamic cffi
];
}