about summary refs log tree commit diff
path: root/third_party/lisp/mime4cl/default.nix
blob: 349ef397f761fd975ebd6ae70fe71de7055239c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright (C) 2021 by the TVL Authors
# SPDX-License-Identifier: LGPL-2.1-or-later
{ depot, pkgs, ... }:

depot.nix.buildLisp.library {
  name = "mime4cl";

  deps = [
    depot.third_party.lisp.babel
    depot.third_party.lisp.npg
    depot.third_party.lisp.trivial-gray-streams
  ];

  srcs = [
    ./ex-sclf.lisp
    ./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)

        ;; missing from the tarball completely
        (defvar *samples-directory* (pathname "/this/does/not/exist"))
        ;; override auto discovery which doesn't work in store
        (defvar *sample1-file* (pathname "${./test/sample1.msg}"))
      '')
      ./test/temp-file.lisp
      ./test/endec.lisp
      ./test/address.lisp
      ./test/mime.lisp
    ];

    expression = "(rtest:do-tests)";
  };

  # limited by sclf
  brokenOn = [
    "ccl"
    "ecl"
  ];
}