2021-08-02 15:15:39 +02:00
|
|
|
# Copyright (C) 2021 by the TVL Authors
|
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
depot.nix.buildLisp.library {
|
|
|
|
name = "mime4cl";
|
|
|
|
|
|
|
|
deps = [
|
2023-03-30 17:36:29 +02:00
|
|
|
depot.third_party.lisp.flexi-streams
|
2021-08-02 15:15:39 +02:00
|
|
|
depot.third_party.lisp.npg
|
2022-01-24 11:56:27 +01:00
|
|
|
depot.third_party.lisp.trivial-gray-streams
|
2023-05-16 16:11:00 +02:00
|
|
|
depot.third_party.lisp.qbase64
|
2024-04-03 15:55:22 +02:00
|
|
|
{ sbcl = depot.nix.buildLisp.bundled "sb-posix"; }
|
2021-08-02 15:15:39 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
srcs = [
|
2022-07-04 15:56:52 +02:00
|
|
|
./ex-sclf.lisp
|
2021-08-02 15:15:39 +02:00
|
|
|
./package.lisp
|
|
|
|
./endec.lisp
|
|
|
|
./streams.lisp
|
|
|
|
./mime.lisp
|
|
|
|
./address.lisp
|
|
|
|
];
|
|
|
|
|
|
|
|
tests = {
|
|
|
|
name = "mime4cl-tests";
|
|
|
|
|
|
|
|
srcs = [
|
|
|
|
./test/rt.lisp
|
|
|
|
./test/package.lisp
|
|
|
|
(pkgs.writeText "nix-samples.lisp" ''
|
|
|
|
(in-package :mime4cl-tests)
|
|
|
|
|
2023-05-01 18:06:18 +02:00
|
|
|
;; override auto discovery which doesn't work in the nix store
|
2023-05-01 18:46:50 +02:00
|
|
|
(defvar *samples-directory* (pathname "${./test/samples}/"))
|
2021-08-02 15:15:39 +02:00
|
|
|
'')
|
2022-07-04 15:56:52 +02:00
|
|
|
./test/temp-file.lisp
|
2021-08-02 15:15:39 +02:00
|
|
|
./test/endec.lisp
|
|
|
|
./test/address.lisp
|
|
|
|
./test/mime.lisp
|
|
|
|
];
|
|
|
|
|
|
|
|
expression = "(rtest:do-tests)";
|
|
|
|
};
|
|
|
|
|
|
|
|
# limited by sclf
|
|
|
|
brokenOn = [
|
|
|
|
"ccl"
|
|
|
|
"ecl"
|
|
|
|
];
|
|
|
|
}
|